Skip to content

Update deny.toml for recent updates to cargo-deny (#204) #712

Update deny.toml for recent updates to cargo-deny (#204)

Update deny.toml for recent updates to cargo-deny (#204) #712

GitHub Actions / clippy failed May 4, 2024 in 0s

clippy

6 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 6
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 160 in src/xmp_iterator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/xmp_iterator.rs:160:9
    |
160 |         self.prop_name = prop_name.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `prop_name.clone_into(&mut self.prop_name)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 159 in src/xmp_iterator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/xmp_iterator.rs:159:9
    |
159 |         self.schema_ns = schema_ns.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `schema_ns.clone_into(&mut self.schema_ns)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 152 in src/xmp_iterator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/xmp_iterator.rs:152:9
    |
152 |         self.schema_ns = schema_ns.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `schema_ns.clone_into(&mut self.schema_ns)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
note: the lint level is defined here
   --> src/lib.rs:18:9
    |
18  | #![deny(warnings)]
    |         ^^^^^^^^
    = note: `#[deny(clippy::assigning_clones)]` implied by `#[deny(warnings)]`

Check failure on line 160 in src/xmp_iterator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/xmp_iterator.rs:160:9
    |
160 |         self.prop_name = prop_name.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `prop_name.clone_into(&mut self.prop_name)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 159 in src/xmp_iterator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/xmp_iterator.rs:159:9
    |
159 |         self.schema_ns = schema_ns.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `schema_ns.clone_into(&mut self.schema_ns)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 152 in src/xmp_iterator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/xmp_iterator.rs:152:9
    |
152 |         self.schema_ns = schema_ns.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `schema_ns.clone_into(&mut self.schema_ns)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
note: the lint level is defined here
   --> src/lib.rs:18:9
    |
18  | #![deny(warnings)]
    |         ^^^^^^^^
    = note: `#[deny(clippy::assigning_clones)]` implied by `#[deny(warnings)]`