Skip to content

[WIP] initial u256 conversions commit #115

[WIP] initial u256 conversions commit

[WIP] initial u256 conversions commit #115

GitHub Actions / clippy failed Aug 30, 2023 in 1s

clippy

3 errors, 1 warning

Details

Results

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

Versions

  • rustc 1.74.0-nightly (84a9f4c6e 2023-08-29)
  • cargo 1.74.0-nightly (925280f02 2023-08-25)
  • clippy 0.1.74 (84a9f4c 2023-08-29)

Annotations

Check failure on line 23 in crates/freeze/src/types/schemas.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`types::files::ColumnEncoding` doesn't implement `std::fmt::Debug`

error[E0277]: `types::files::ColumnEncoding` doesn't implement `std::fmt::Debug`
  --> crates/freeze/src/types/schemas.rs:23:5
   |
9  | #[derive(Clone, Debug, Eq, PartialEq)]
   |                 ----- in this derive macro expansion
...
23 |     pub binary_type: ColumnEncoding,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `types::files::ColumnEncoding` cannot be formatted using `{:?}`
   |
   = help: the trait `std::fmt::Debug` is not implemented for `types::files::ColumnEncoding`
   = note: add `#[derive(Debug)]` to `types::files::ColumnEncoding` or manually `impl std::fmt::Debug for types::files::ColumnEncoding`
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::files::ColumnEncoding` with `#[derive(Debug)]`
  --> crates/freeze/src/types/files.rs:48:1
   |
48 + #[derive(Debug)]
49 | pub enum ColumnEncoding {
   |

Check warning on line 126 in crates/freeze/src/types/schemas.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant field names in struct initialization

warning: redundant field names in struct initialization
   --> crates/freeze/src/types/schemas.rs:126:76
    |
126 |         let schema = Table { datatype: *self, sort_columns: sort, columns, u256_types: u256_types, binary_type: ColumnEncoding };
    |                                                                            ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `u256_types`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
    = note: `#[warn(clippy::redundant_field_names)]` on by default

Check failure on line 126 in crates/freeze/src/types/schemas.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

expected value, found enum `ColumnEncoding`

error[E0423]: expected value, found enum `ColumnEncoding`
   --> crates/freeze/src/types/schemas.rs:126:113
    |
126 |         let schema = Table { datatype: *self, sort_columns: sort, columns, u256_types: u256_types, binary_type: ColumnEncoding };
    |                                                                                                                 ^^^^^^^^^^^^^^
    |
note: the enum is defined here
   --> crates/freeze/src/types/files.rs:48:1
    |
48  | / pub enum ColumnEncoding {
49  | |     /// Raw binary encoding
50  | |     Binary,
51  | |     /// Hex binary encoding
52  | |     Hex,
53  | | }
    | |_^
help: you might have meant to use one of the following enum variants
    |
126 |         let schema = Table { datatype: *self, sort_columns: sort, columns, u256_types: u256_types, binary_type: ColumnEncoding::Binary };
    |                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~~
126 |         let schema = Table { datatype: *self, sort_columns: sort, columns, u256_types: u256_types, binary_type: ColumnEncoding::Hex };
    |                                                                                                                 ~~~~~~~~~~~~~~~~~~~

Check failure on line 126 in crates/freeze/src/types/schemas.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find value `u256_types` in this scope

error[E0425]: cannot find value `u256_types` in this scope
   --> crates/freeze/src/types/schemas.rs:126:88
    |
126 |         let schema = Table { datatype: *self, sort_columns: sort, columns, u256_types: u256_types, binary_type: ColumnEncoding };
    |                                                                                        ^^^^^^^^^^ not found in this scope