Skip to content

Format Rust code using rustfmt #1380

Format Rust code using rustfmt

Format Rust code using rustfmt #1380

GitHub Actions / clippy failed Nov 26, 2023 in 1s

clippy

16 errors

Details

Results

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

Versions

  • rustc 1.73.0-nightly (d06ca0ffa 2023-08-18)
  • cargo 1.73.0-nightly (7c3904d6c 2023-08-14)
  • clippy 0.1.73 (d06ca0f 2023-08-18)

Annotations

Check failure on line 388 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:388:28
    |
388 |     associated_type_ident: Path,
    |                            ^^^^ help: consider taking a reference instead: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 387 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:387:34
    |
387 |     type_derivation_trait_ident: Path,
    |                                  ^^^^ help: consider taking a reference instead: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 343 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:343:25
    |
343 |     deserialize_method: Ident,
    |                         ^^^^^ help: consider taking a reference instead: `&Ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 342 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:342:23
    |
342 |     serialize_method: Ident,
    |                       ^^^^^ help: consider taking a reference instead: `&Ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 341 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:341:22
    |
341 |     serialized_type: Path,
    |                      ^^^^ help: consider taking a reference instead: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 278 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:278:18
    |
278 |     trait_ident: Path,
    |                  ^^^^ help: consider taking a reference instead: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 277 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:277:16
    |
277 |     from_type: Path,
    |                ^^^^ help: consider taking a reference instead: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 276 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:276:18
    |
276 |     method_name: Ident,
    |                  ^^^^^ help: consider taking a reference instead: `&Ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 249 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:249:18
    |
249 |     target_type: Path,
    |                  ^^^^ help: consider taking a reference instead: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 248 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:248:18
    |
248 |     method_name: Ident,
    |                  ^^^^^ help: consider taking a reference instead: `&Ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 224 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:224:31
    |
224 | fn ident_with_generics(ident: Ident, generics: Generics) -> Path {
    |                               ^^^^^ help: consider taking a reference instead: `&Ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 219 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:219:32
    |
219 | fn path_from_ident(identifier: Ident) -> Path {
    |                                ^^^^^ help: consider taking a reference instead: `&Ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 114 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:114:72
    |
114 | pub(crate) fn circuit_type_impl(target_struct: ItemStruct, macro_args: MacroArgs) -> TokenStream {
    |                                                                        ^^^^^^^^^ help: consider taking a reference instead: `&MacroArgs`
    |
help: consider marking this type as `Copy`
   --> circuit-macros/src/circuit_type.rs:54:1
    |
54  | pub(crate) struct MacroArgs {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 114 in circuit-macros/src/circuit_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type.rs:114:48
    |
114 | pub(crate) fn circuit_type_impl(target_struct: ItemStruct, macro_args: MacroArgs) -> TokenStream {
    |                                                ^^^^^^^^^^ help: consider taking a reference instead: `&ItemStruct`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 113 in circuit-macros/src/circuit_type/singleprover_circuit_types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
   --> circuit-macros/src/circuit_type/singleprover_circuit_types.rs:113:60
    |
113 | fn build_var_type_impl(var_struct: &ItemStruct, base_name: Path) -> TokenStream2 {
    |                                                            ^^^^ help: consider taking a reference instead: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 76 in circuit-macros/src/circuit_trace.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
  --> circuit-macros/src/circuit_trace.rs:76:45
   |
76 | pub(crate) fn circuit_trace_impl(target_fn: ItemFn, macro_args: MacroArgs) -> TokenStream {
   |                                             ^^^^^^ help: consider taking a reference instead: `&ItemFn`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
   = note: requested on the command line with `-D clippy::needless-pass-by-value`