feat: generate martian struct field descriptions and filenames #583
Annotations
9 warnings
clippy_check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: 10XGenomics/clippy-check@main. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
variables can be used directly in the `format!` string:
martian/src/mro.rs#L36
warning: variables can be used directly in the `format!` string
--> martian/src/mro.rs:36:17
|
36 | / assert!(
37 | | width >= min_width,
38 | | "Need a minimum width of {}. Found {}",
39 | | min_width,
40 | | width
41 | | );
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: requested on the command line with `-W clippy::uninlined-format-args`
|
variables can be used directly in the `format!` string:
martian/src/mro.rs#L113
warning: variables can be used directly in the `format!` string
--> martian/src/mro.rs:113:13
|
113 | writeln!(f, " {},", formatted_line)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
113 - writeln!(f, " {},", formatted_line)?;
113 + writeln!(f, " {formatted_line},")?;
|
|
variables can be used directly in the `format!` string:
martian/src/mro.rs#L485
warning: variables can be used directly in the `format!` string
--> martian/src/mro.rs:485:31
|
485 | Some(ref name) => format!(" \"{}\"", name),
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
485 - Some(ref name) => format!(" \"{}\"", name),
485 + Some(ref name) => format!(" \"{name}\""),
|
|
variables can be used directly in the `format!` string:
martian/src/mro.rs#L526
warning: variables can be used directly in the `format!` string
--> martian/src/mro.rs:526:13
|
526 | / assert!(
527 | | self.name != token,
528 | | "Martian token {} cannot be used as field name",
529 | | token
530 | | );
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
martian/src/mro.rs#L926
warning: variables can be used directly in the `format!` string
--> martian/src/mro.rs:926:13
|
926 | / write!(
927 | | f,
928 | | "{params:<ty_width$}",
929 | | params = chunk_in_out,
930 | | ty_width = ty_width
931 | | )?;
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
martian/src/lib.rs#L360
warning: variables can be used directly in the `format!` string
--> martian/src/lib.rs:360:9
|
360 | / assert!(
361 | | header_comment
362 | | .lines()
363 | | .all(|line| line.trim_end().is_empty() || line.starts_with('#')),
364 | | "All non-empty header lines must start with '#', but got\n{}",
365 | | header_comment
366 | | );
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
martian-derive/src/lib.rs#L327
warning: variables can be used directly in the `format!` string
--> martian-derive/src/lib.rs:327:9
|
327 | / format!(
328 | | "{}. You are trying to use it on {} trait implementation.",
329 | | ATTR_NOT_ON_TRAIT_IMPL_ERROR, last_ident
330 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: requested on the command line with `-W clippy::uninlined-format-args`
|
variables can be used directly in the `format!` string:
martian-derive/src/lib.rs#L550
warning: variables can be used directly in the `format!` string
--> martian-derive/src/lib.rs:550:17
|
550 | / format!(
551 | | "Field name {} is not allowed here since it is a martian keyword",
552 | | name
553 | | ),
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|