Skip to content

draft pretty printer types and smoke test;

Sign in for the full log view
GitHub Actions / clippy failed Jul 24, 2023 in 0s

clippy

3 errors

Details

Results

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

Versions

  • rustc 1.66.1 (90743e729 2023-01-10)
  • cargo 1.66.1 (ad779e08b 2023-01-10)
  • clippy 0.1.66 (90743e7 2023-01-10)

Annotations

Check failure on line 12 in ergotree-ir/src/pretty_printer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `print_expr` is never used

error: function `print_expr` is never used
  --> ergotree-ir/src/pretty_printer.rs:12:15
   |
12 | pub(crate) fn print_expr(expr: Expr) -> Result<PrintExpr, PrintError> {
   |               ^^^^^^^^^^

Check failure on line 3 in ergotree-ir/src/pretty_printer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

struct `PrintExpr` is never constructed

error: struct `PrintExpr` is never constructed
 --> ergotree-ir/src/pretty_printer.rs:3:19
  |
3 | pub(crate) struct PrintExpr {
  |                   ^^^^^^^^^
  |
note: the lint level is defined here
 --> ergotree-ir/src/lib.rs:9:9
  |
9 | #![deny(dead_code)]
  |         ^^^^^^^^^

Check failure on line 12 in ergotree-ir/src/pretty_printer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `expr`

error: unused variable: `expr`
  --> ergotree-ir/src/pretty_printer.rs:12:26
   |
12 | pub(crate) fn print_expr(expr: Expr) -> Result<PrintExpr, PrintError> {
   |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_expr`
   |
   = note: `-D unused-variables` implied by `-D warnings`