Skip to content

add extra unit test #53

add extra unit test

add extra unit test #53

GitHub Actions / debug succeeded Jan 18, 2025 in 1s

debug

14 warnings

Details

Results

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

Versions

  • rustc 1.85.0-beta.4 (752fecf80 2025-01-17)
  • cargo 1.85.0-beta.4 (d73d2caf9 2024-12-31)
  • clippy 0.1.85 (752fecf800 2025-01-17)

Annotations

Check warning on line 14 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / debug

doc list item without indentation

warning: doc list item without indentation
  --> src/lib.rs:14:5
   |
14 | //! through procedural macros.
   |     ^
   |
   = help: if this is supposed to be its own paragraph, add a blank line
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
   |
14 | //!   through procedural macros.
   |     ++

Check warning on line 13 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / debug

doc list item without indentation

warning: doc list item without indentation
  --> src/lib.rs:13:5
   |
13 | //! But users can only provide one default implementation for each method
   |     ^
   |
   = help: if this is supposed to be its own paragraph, add a blank line
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
   |
13 | //!   But users can only provide one default implementation for each method
   |     ++

Check warning on line 12 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / debug

doc list item without indentation

warning: doc list item without indentation
  --> src/lib.rs:12:5
   |
12 | //! writing the defaults involves a lot of boilerplate.
   |     ^
   |
   = help: if this is supposed to be its own paragraph, add a blank line
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
   |
12 | //!   writing the defaults involves a lot of boilerplate.
   |     ++

Check warning on line 10 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / debug

doc list item without indentation

warning: doc list item without indentation
  --> src/lib.rs:10:5
   |
10 | //! if its return type is an associated type.
   |     ^
   |
   = help: if this is supposed to be its own paragraph, add a blank line
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
   = note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
   |
10 | //!   if its return type is an associated type.
   |     ++

Check warning on line 65 in codegen/src/impl_fillers/log.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> codegen/src/impl_fillers/log.rs:65:81
   |
65 |         let fmt_string = format!("{}({})", &sig.ident, fmt_args.iter().map(|_| "{:?}").join(", "));
   |                                                                                 ^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
   = note: `#[warn(clippy::literal_string_with_formatting_args)]` on by default

Check warning on line 73 in codegen/src/derive_fillers/derive_delegate.rs

See this annotation in the file changed.

@github-actions github-actions / debug

you seem to be trying to move all elements into a new `Vec`

warning: you seem to be trying to move all elements into a new `Vec`
  --> codegen/src/derive_fillers/derive_delegate.rs:73:30
   |
73 |                 stmts:       stmts.drain(..).collect(),
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(&mut stmts)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drain_collect
   = note: `#[warn(clippy::drain_collect)]` on by default

Check warning on line 65 in codegen/src/impl_fillers/log.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> codegen/src/impl_fillers/log.rs:65:81
   |
65 |         let fmt_string = format!("{}({})", &sig.ident, fmt_args.iter().map(|_| "{:?}").join(", "));
   |                                                                                 ^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
   = note: `#[warn(clippy::literal_string_with_formatting_args)]` on by default

Check warning on line 73 in codegen/src/derive_fillers/derive_delegate.rs

See this annotation in the file changed.

@github-actions github-actions / debug

you seem to be trying to move all elements into a new `Vec`

warning: you seem to be trying to move all elements into a new `Vec`
  --> codegen/src/derive_fillers/derive_delegate.rs:73:30
   |
73 |                 stmts:       stmts.drain(..).collect(),
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(&mut stmts)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drain_collect
   = note: `#[warn(clippy::drain_collect)]` on by default

Check warning on line 71 in framework/src/item_map.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> framework/src/item_map.rs:71:48
   |
71 |                     "no associated type called {ident} in trait",
   |                                                ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

Check warning on line 62 in framework/src/item_map.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> framework/src/item_map.rs:62:52
   |
62 |                     "no associated function called {ident} in trait",
   |                                                    ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

Check warning on line 53 in framework/src/item_map.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> framework/src/item_map.rs:53:52
   |
53 |                     "no associated constant called {ident} in trait",
   |                                                    ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
   = note: `#[warn(clippy::literal_string_with_formatting_args)]` on by default

Check warning on line 71 in framework/src/item_map.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> framework/src/item_map.rs:71:48
   |
71 |                     "no associated type called {ident} in trait",
   |                                                ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

Check warning on line 62 in framework/src/item_map.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> framework/src/item_map.rs:62:52
   |
62 |                     "no associated function called {ident} in trait",
   |                                                    ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

Check warning on line 53 in framework/src/item_map.rs

See this annotation in the file changed.

@github-actions github-actions / debug

this looks like a formatting argument but it is not part of a formatting macro

warning: this looks like a formatting argument but it is not part of a formatting macro
  --> framework/src/item_map.rs:53:52
   |
53 |                     "no associated constant called {ident} in trait",
   |                                                    ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
   = note: `#[warn(clippy::literal_string_with_formatting_args)]` on by default