ref(scaffold): use the thiserror crate #155
ci.yml
on: pull_request
lint
1m 25s
ubuntu / stable / coverage
2m 11s
Matrix: build
Annotations
77 warnings
docs for function returning `Result` missing `# Errors` section:
src/syntax/mod.rs#L14
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/mod.rs:14:1
|
14 | pub fn parse(text: &str) -> crate::error::Result<ast::Ast> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/syntax/visitor.rs#L23
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/visitor.rs:23:5
|
23 | / fn visit_description(
24 | | &mut self,
25 | | description: &ast::Description,
26 | | ) -> Result<Self::Output, Self::Error>;
| |___________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/syntax/visitor.rs#L21
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/visitor.rs:21:5
|
21 | fn visit_action(&mut self, action: &ast::Action) -> Result<Self::Output, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/syntax/visitor.rs#L19
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/visitor.rs:19:5
|
19 | fn visit_condition(&mut self, condition: &ast::Condition) -> Result<Self::Output, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/syntax/visitor.rs#L17
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/visitor.rs:17:5
|
17 | fn visit_root(&mut self, root: &ast::Root) -> Result<Self::Output, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/syntax/tokenizer.rs#L147
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/tokenizer.rs:147:5
|
147 | pub fn tokenize(&mut self, text: &str) -> Result<Vec<Token>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/syntax/semantics.rs#L121
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/semantics.rs:121:5
|
121 | pub fn analyze(&mut self, ast: &ast::Ast) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function which may panic missing `# Panics` section:
src/syntax/semantics.rs#L121
warning: docs for function which may panic missing `# Panics` section
--> src/syntax/semantics.rs:121:5
|
121 | pub fn analyze(&mut self, ast: &ast::Ast) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first possible panic found here
--> src/syntax/semantics.rs:122:9
|
122 | / match ast {
123 | | Ast::Root(root) => self.visit_root(root),
124 | | Ast::Condition(condition) => self.visit_condition(condition),
125 | | Ast::Action(action) => self.visit_action(action),
... |
129 | | // be stored in `self.errors`.
130 | | .unwrap();
| |_________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
|
redundant closure:
src/syntax/semantics.rs#L17
warning: redundant closure
--> src/syntax/semantics.rs:17:29
|
17 | #[error("{}", .0.iter().map(|e| e.to_string()).collect::<Vec<_>>().join(""))]
| ^^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `std::string::ToString::to_string`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
= note: `#[warn(clippy::redundant_closure_for_method_calls)]` implied by `#[warn(clippy::pedantic)]`
|
called `.collect::<Vec<String>>().join("")` on an iterator:
src/syntax/semantics.rs#L17
warning: called `.collect::<Vec<String>>().join("")` on an iterator
--> src/syntax/semantics.rs:17:48
|
17 | #[error("{}", .0.iter().map(|e| e.to_string()).collect::<Vec<_>>().join(""))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `collect::<String>()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_join
= note: `#[warn(clippy::unnecessary_join)]` implied by `#[warn(clippy::pedantic)]`
|
docs for function returning `Result` missing `# Errors` section:
src/syntax/parser.rs#L128
warning: docs for function returning `Result` missing `# Errors` section
--> src/syntax/parser.rs:128:5
|
128 | pub fn parse(&mut self, text: &str, tokens: &[Token]) -> Result<Ast> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/scaffold/mod.rs#L141
warning: docs for function returning `Result` missing `# Errors` section
--> src/scaffold/mod.rs:141:1
|
141 | pub fn scaffold(text: &str, cfg: &Config) -> crate::error::Result<String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function which may panic missing `# Panics` section:
src/scaffold/mod.rs#L141
warning: docs for function which may panic missing `# Panics` section
--> src/scaffold/mod.rs:141:1
|
141 | pub fn scaffold(text: &str, cfg: &Config) -> crate::error::Result<String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first possible panic found here
--> src/scaffold/mod.rs:145:21
|
145 | let formatted = fmt(&source).expect("should format the emitted solidity code");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
|
more than 3 bools in a struct:
src/scaffold/mod.rs#L24
warning: more than 3 bools in a struct
--> src/scaffold/mod.rs:24:1
|
24 | / pub struct Scaffold {
25 | | /// The set of tree files to generate from.
26 | | ///
27 | | /// Each Solidity file will be named after its matching
... |
50 | | pub skip_modifiers: bool,
51 | | }
| |_^
|
= help: consider using a state machine or refactoring bools into two-variant enums
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
= note: `#[warn(clippy::struct_excessive_bools)]` implied by `#[warn(clippy::pedantic)]`
|
docs for function which may panic missing `# Panics` section:
src/scaffold/modifiers.rs#L40
warning: docs for function which may panic missing `# Panics` section
--> src/scaffold/modifiers.rs:40:5
|
40 | pub fn discover(&mut self, ast: &Ast) -> &IndexMap<String, String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first possible panic found here
--> src/scaffold/modifiers.rs:43:17
|
43 | self.visit_root(root).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
= note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
|
unused `self` argument:
src/scaffold/emitter.rs#L83
warning: unused `self` argument
--> src/scaffold/emitter.rs:83:29
|
83 | fn emit_contract_header(&self, contract: &hir::ContractDefinition) -> String {
| ^^^^^
|
= help: consider refactoring to an associated function
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
= note: `#[warn(clippy::unused_self)]` implied by `#[warn(clippy::pedantic)]`
|
item name ends with its containing module's name:
src/hir/mod.rs#L40
warning: item name ends with its containing module's name
--> src/hir/mod.rs:40:8
|
40 | pub fn translate_tree_to_hir(tree: &str, cfg: &Config) -> error::Result<Hir> {
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
= note: `#[warn(clippy::module_name_repetitions)]` implied by `#[warn(clippy::pedantic)]`
|
docs for function returning `Result` missing `# Errors` section:
src/hir/mod.rs#L40
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/mod.rs:40:1
|
40 | pub fn translate_tree_to_hir(tree: &str, cfg: &Config) -> error::Result<Hir> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/hir/mod.rs#L20
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/mod.rs:20:1
|
20 | pub fn translate(text: &str, cfg: &Config) -> anyhow::Result<Hir> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/hir/visitor.rs#L72
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/visitor.rs:72:5
|
72 | / fn visit_statement(
73 | | &mut self,
74 | | statement: &hir::Statement,
75 | | ) -> Result<Self::StatementOutput, Self::Error>;
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/hir/visitor.rs#L62
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/visitor.rs:62:5
|
62 | / fn visit_comment(&mut self, comment: &hir::Comment)
63 | | -> Result<Self::CommentOutput, Self::Error>;
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/hir/visitor.rs#L50
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/visitor.rs:50:5
|
50 | / fn visit_function(
51 | | &mut self,
52 | | function: &hir::FunctionDefinition,
53 | | ) -> Result<Self::FunctionDefinitionOutput, Self::Error>;
| |_____________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/hir/visitor.rs#L39
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/visitor.rs:39:5
|
39 | / fn visit_contract(
40 | | &mut self,
41 | | contract: &hir::ContractDefinition,
42 | | ) -> Result<Self::ContractDefinitionOutput, Self::Error>;
| |_____________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/hir/visitor.rs#L31
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/visitor.rs:31:5
|
31 | fn visit_root(&mut self, root: &hir::Root) -> Result<Self::RootOutput, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/hir/combiner.rs#L96
warning: docs for function returning `Result` missing `# Errors` section
--> src/hir/combiner.rs:96:5
|
96 | pub fn combine(self, text: &str, hirs: Vec<Hir>) -> Result<Hir> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
calling `Check::default()` is more clear than this expression:
src/config.rs#L77
warning: calling `Check::default()` is more clear than this expression
--> src/config.rs:77:18
|
77 | _ => Default::default(),
| ^^^^^^^^^^^^^^^^^^ help: try: `Check::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
|
wildcard matches only a single variant and will also match any future added variants:
src/config.rs#L77
warning: wildcard matches only a single variant and will also match any future added variants
--> src/config.rs:77:13
|
77 | _ => Default::default(),
| ^ help: try: `Commands::Scaffold(_)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
|
calling `Scaffold::default()` is more clear than this expression:
src/config.rs#L68
warning: calling `Scaffold::default()` is more clear than this expression
--> src/config.rs:68:18
|
68 | _ => Default::default(),
| ^^^^^^^^^^^^^^^^^^ help: try: `Scaffold::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
|
wildcard matches only a single variant and will also match any future added variants:
src/config.rs#L68
warning: wildcard matches only a single variant and will also match any future added variants
--> src/config.rs:68:13
|
68 | _ => Default::default(),
| ^ help: try: `Commands::Check(_)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
= note: `#[warn(clippy::match_wildcard_for_single_variants)]` implied by `#[warn(clippy::pedantic)]`
|
docs for function returning `Result` missing `# Errors` section:
src/config.rs#L53
warning: docs for function returning `Result` missing `# Errors` section
--> src/config.rs:53:1
|
53 | pub fn run() -> anyhow::Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
= note: `#[warn(clippy::missing_errors_doc)]` implied by `#[warn(clippy::pedantic)]`
|
calling `Scaffold::default()` is more clear than this expression:
src/config.rs#L48
warning: calling `Scaffold::default()` is more clear than this expression
--> src/config.rs:48:24
|
48 | Self::Scaffold(Default::default())
| ^^^^^^^^^^^^^^^^^^ help: try: `Scaffold::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
|
this function's return value is unnecessary:
src/check/mod.rs#L58
warning: this function's return value is unnecessary
--> src/check/mod.rs:58:5
|
58 | / pub(crate) fn run(&self, cfg: &Config) -> anyhow::Result<()> {
59 | | let mut violations = Vec::new();
60 | | let ctxs: Vec<Context> = self
61 | | .files
... |
120 | | Ok(())
121 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps
= note: `#[warn(clippy::unnecessary_wraps)]` implied by `#[warn(clippy::pedantic)]`
help: remove the return type...
|
58 | pub(crate) fn run(&self, cfg: &Config) -> anyhow::Result<()> {
| ~~~~~~~~~~~~~~~~~~
help: ...and then remove returned values
|
120 - Ok(())
120 +
|
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
src/check/violation.rs#L313
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> src/check/violation.rs:313:19
|
313 | contract_sol: &Box<ContractDefinition>,
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&ContractDefinition`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
= note: `#[warn(clippy::borrowed_box)]` implied by `#[warn(clippy::all)]`
|
calling `Config::default()` is more clear than this expression:
src/check/violation.rs#L187
warning: calling `Config::default()` is more clear than this expression
--> src/check/violation.rs:187:48
|
187 | let pt = sol::Translator::new(&Default::default()).translate(&ctx.hir);
| ^^^^^^^^^^^^^^^^^^ help: try: `Config::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
|
the loop variable `j` is only used to index `present_fn_indices`:
src/check/rules/structural_match.rs#L160
warning: the loop variable `j` is only used to index `present_fn_indices`
--> src/check/rules/structural_match.rs:160:18
|
160 | for j in i + 1..present_fn_indices.len() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
= note: `#[warn(clippy::needless_range_loop)]` implied by `#[warn(clippy::all)]`
help: consider using an iterator
|
160 | for <item> in present_fn_indices.iter().skip(i + 1) {
| ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
consider adding a `;` to the last statement for consistent formatting:
src/check/rules/structural_match.rs#L134
warning: consider adding a `;` to the last statement for consistent formatting
--> src/check/rules/structural_match.rs:134:25
|
134 | / violations.push(Violation::new(
135 | | ViolationKind::MatchingFunctionMissing(fn_hir.clone(), hir_idx),
136 | | Location::Code(
137 | | ctx.tree.to_string_lossy().into_owned(),
138 | | fn_hir.span.start.line,
139 | | ),
140 | | ))
| |__________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `#[warn(clippy::semicolon_if_nothing_returned)]` implied by `#[warn(clippy::pedantic)]`
help: add a `;` here
|
134 ~ violations.push(Violation::new(
135 + ViolationKind::MatchingFunctionMissing(fn_hir.clone(), hir_idx),
136 + Location::Code(
137 + ctx.tree.to_string_lossy().into_owned(),
138 + fn_hir.span.start.line,
139 + ),
140 + ));
|
|
calling `Config::default()` is more clear than this expression:
src/check/context.rs#L121
warning: calling `Config::default()` is more clear than this expression
--> src/check/context.rs:121:20
|
121 | let cfg = &Default::default();
| ^^^^^^^^^^^^^^^^^^ help: try: `Config::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
|
methods called `from_*` usually take no `self`:
src/check/context.rs#L85
warning: methods called `from_*` usually take no `self`
--> src/check/context.rs:85:31
|
85 | pub(crate) fn from_parsed(mut self, parsed: Parsed) -> Self {
| ^^^^^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
note: the lint level is defined here
--> src/lib.rs:3:9
|
3 | #![warn(clippy::all, clippy::pedantic, clippy::cargo)]
| ^^^^^^^^^^^
= note: `#[warn(clippy::wrong_self_convention)]` implied by `#[warn(clippy::all)]`
|
calling `Config::default()` is more clear than this expression:
src/check/context.rs#L53
warning: calling `Config::default()` is more clear than this expression
--> src/check/context.rs:53:58
|
53 | let hir = crate::hir::translate(&tree_contents, &Default::default()).map_err(|e| {
| ^^^^^^^^^^^^^^^^^^ help: try: `Config::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
= note: `#[warn(clippy::default_trait_access)]` implied by `#[warn(clippy::pedantic)]`
|
this argument is passed by value, but not consumed in the function body:
src/check/context.rs#L50
warning: this argument is passed by value, but not consumed in the function body
--> src/check/context.rs:50:43
|
50 | pub(crate) fn new(tree: PathBuf, cfg: Config) -> Result<Self, Violation> {
| ^^^^^^ help: consider taking a reference instead: `&Config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
= note: `#[warn(clippy::needless_pass_by_value)]` implied by `#[warn(clippy::pedantic)]`
|
multiple versions for dependency `yansi`: 0.5.1, 1.0.0-rc.1:
src/lib.rs#L1
warning: multiple versions for dependency `yansi`: 0.5.1, 1.0.0-rc.1
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
|
multiple versions for dependency `toml_edit`: 0.19.15, 0.20.7, 0.21.0:
src/lib.rs#L1
warning: multiple versions for dependency `toml_edit`: 0.19.15, 0.20.7, 0.21.0
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
|
multiple versions for dependency `toml`: 0.7.8, 0.8.8:
src/lib.rs#L1
warning: multiple versions for dependency `toml`: 0.7.8, 0.8.8
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
|
multiple versions for dependency `syn`: 1.0.109, 2.0.66:
src/lib.rs#L1
warning: multiple versions for dependency `syn`: 1.0.109, 2.0.66
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
|
multiple versions for dependency `socket2`: 0.4.10, 0.5.5:
src/lib.rs#L1
warning: multiple versions for dependency `socket2`: 0.4.10, 0.5.5
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
|
multiple versions for dependency `proc-macro-crate`: 1.3.1, 2.0.0:
src/lib.rs#L1
warning: multiple versions for dependency `proc-macro-crate`: 1.3.1, 2.0.0
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
|
multiple versions for dependency `bitflags`: 1.3.2, 2.4.1:
src/lib.rs#L1
warning: multiple versions for dependency `bitflags`: 1.3.2, 2.4.1
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
|
multiple versions for dependency `alloy-primitives`: 0.3.3, 0.4.2:
src/lib.rs#L1
warning: multiple versions for dependency `alloy-primitives`: 0.3.3, 0.4.2
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
note: the lint level is defined here
--> src/lib.rs:3:40
|
3 | #![warn(clippy::all, clippy::pedantic, clippy::cargo)]
| ^^^^^^^^^^^^^
= note: `#[warn(clippy::multiple_crate_versions)]` implied by `#[warn(clippy::cargo)]`
|
you should put bare URLs between `<`/`>` or make a proper Markdown link:
src/../README.md#L405
warning: you should put bare URLs between `<`/`>` or make a proper Markdown link
--> src/../README.md:405:3
|
405 | https://opensource.org/licenses/MIT).
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
|
you should put bare URLs between `<`/`>` or make a proper Markdown link:
src/../README.md#L403
warning: you should put bare URLs between `<`/`>` or make a proper Markdown link
--> src/../README.md:403:3
|
403 | https://www.apache.org/licenses/LICENSE-2.0).
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
|
item in documentation is missing backticks:
src/../README.md#L46
warning: item in documentation is missing backticks
--> src/../README.md:46:15
|
46 | The following VSCode extensions are not essential but they are recommended for a
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
46 | The following `VSCode` extensions are not essential but they are recommended for a
| ~~~~~~~~
|
item in documentation is missing backticks:
src/../README.md#L44
warning: item in documentation is missing backticks
--> src/../README.md:44:5
|
44 | ### VSCode
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
44 | ### `VSCode`
| ~~~~~~~~
|
item in documentation is missing backticks:
src/../README.md#L18
warning: item in documentation is missing backticks
--> src/../README.md:18:6
|
18 | - [VSCode](#vscode)
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
note: the lint level is defined here
--> src/lib.rs:3:22
|
3 | #![warn(clippy::all, clippy::pedantic, clippy::cargo)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::doc_markdown)]` implied by `#[warn(clippy::pedantic)]`
help: try
|
18 | - [`VSCode`](#vscode)
| ~~~~~~~~
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (macOS-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build (macOS-latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build (ubuntu-latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (windows-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build (windows-latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|