Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply clippy suggestions #1209

Merged
merged 3 commits into from
Aug 12, 2023
Merged

apply clippy suggestions #1209

merged 3 commits into from
Aug 12, 2023

Conversation

jqnatividad
Copy link
Collaborator

No description provided.

warning: calling `ByteRecord::default()` is more clear than this expression
   --> src/cmd/frequency.rs:197:45
    |
197 |         let mut row_work: csv::ByteRecord = Default::default();
    |                                             ^^^^^^^^^^^^^^^^^^ help: try: `ByteRecord::default()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
    = note: `-W clippy::default-trait-access` implied by `-W clippy::pedantic`
warning: matching over `()` is more explicit
   --> src/cmd/sqlp.rs:295:16
    |
295 |             Ok(_) => Ok(df.shape()),
    |                ^ help: use `()` instead of `_`: `()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
    = note: `-W clippy::ignored-unit-patterns` implied by `-W clippy::pedantic`

warning: matching over `()` is more explicit
   --> src/config.rs:352:16
    |
352 |             Ok(_) => {
    |                ^ help: use `()` instead of `_`: `()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns

warning: matching over `()` is more explicit
   --> src/config.rs:353:24
    |
353 |                 let Ok(_) = io::Write::flush(&mut wtr) else {
    |                        ^ help: use `()` instead of `_`: `()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
   --> src/cmd/stats.rs:191:17
    |
191 | #[derive(Clone, Deserialize, Debug)]
    |                 ^^^^^^^^^^^
    |
    = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_derive_deserialize
    = note: `-W clippy::unsafe-derive-deserialize` implied by `-W clippy::pedantic`
    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
@jqnatividad jqnatividad merged commit 3eae5b1 into master Aug 12, 2023
@jqnatividad jqnatividad deleted the clippy-suggestions branch August 16, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant