Skip to content

WIP: abi-cafe v2 (kdl-script frontend) #52

WIP: abi-cafe v2 (kdl-script frontend)

WIP: abi-cafe v2 (kdl-script frontend) #52

GitHub Actions / clippy failed Jun 30, 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 94 in src/fivemat.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

literal with an empty format string

error: literal with an empty format string
  --> src/fivemat.rs:94:49
   |
94 |                     writeln!(&mut f, "{}: {},", "x", "f64")?;
   |                                                 ^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
help: try
   |
94 -                     writeln!(&mut f, "{}: {},", "x", "f64")?;
94 +                     writeln!(&mut f, "x: f64,")?;
   |

Check failure on line 91 in src/fivemat.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

literal with an empty format string

error: literal with an empty format string
  --> src/fivemat.rs:91:43
   |
91 |                 writeln!(&mut f, "{} {{", "Inner")?;
   |                                           ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
   = note: `-D clippy::write-literal` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::write_literal)]`
help: try
   |
91 -                 writeln!(&mut f, "{} {{", "Inner")?;
91 +                 writeln!(&mut f, "Inner {{")?;
   |

Check failure on line 262 in src/abis/rust/declare.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

error: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/abis/rust/declare.rs:262:54
    |
262 |                     let real_tyname = &state.tynames[&real];
    |                                                      ^^^^^ help: change this to: `real`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `-D clippy::needless-borrow` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`

Check failure on line 26 in src/abis/vals.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `is_input` is never read

error: field `is_input` is never read
  --> src/abis/vals.rs:26:9
   |
23 | pub struct ArgValues {
   |            --------- field in this struct
...
26 |     pub is_input: bool,
   |         ^^^^^^^^
   |
   = note: `ArgValues` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis

Check failure on line 18 in src/abis/vals.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `func_name` is never read

error: field `func_name` is never read
  --> src/abis/vals.rs:18:9
   |
17 | pub struct FuncValues {
   |            ---------- field in this struct
18 |     pub func_name: String,
   |         ^^^^^^^^^
   |
   = note: `FuncValues` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis

Check failure on line 270 in src/abis/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `name` is never used

error: method `name` is never used
   --> src/abis/mod.rs:270:8
    |
269 | pub trait AbiImpl {
    |           ------- method in this trait
270 |     fn name(&self) -> &'static str;
    |        ^^^^
    |
    = note: `-D dead-code` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(dead_code)]`