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 Jun 13, 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.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

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)]`