-
Notifications
You must be signed in to change notification settings - Fork 49
lints: opt in manual lint crates #263
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
Conversation
storage/blockchain/src/config/mod.rs
Outdated
#[allow(clippy::module_inception)] | ||
mod config; | ||
pub use config::{Config, ConfigBuilder, ReaderThreads}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one seems like a mistake, I think I did this when I moved ReaderThreads
, we could move the config
sub-module into this module.
storage/blockchain/src/lib.rs
Outdated
// See `cuprate-database` for reasoning. | ||
clippy::significant_drop_tightening |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: tabs used here
storage/database/src/lib.rs
Outdated
// This lint is allowed because the following | ||
// code exists a lot in this crate: | ||
// | ||
// ```rust | ||
// let env_inner = env.env_inner(); | ||
// let tx_rw = env_inner.tx_rw()?; | ||
// OpenTables::create_tables(&env_inner, &tx_rw)?; | ||
// ``` | ||
// | ||
// Rust thinks `env_inner` can be dropped earlier | ||
// but it cannot, we need it for the lifetime of | ||
// the database transaction + tables. | ||
clippy::significant_drop_tightening |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs and spaces mixed here
storage/txpool/src/lib.rs
Outdated
// See `cuprate-database` for reasoning. | ||
clippy::significant_drop_tightening |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well
What
Cargo.toml
Where
Crates affected:
rpc/{interface,json-rpc,types}
storage/{blockchain,database,txpool}
helper/
types/