mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
Fix clippy::default-trait-access (pedantic) (#867)
This commit is contained in:
parent
59615486d8
commit
7a61edbe46
29 changed files with 256 additions and 241 deletions
|
@ -24,7 +24,7 @@ pub struct Cli {
|
|||
|
||||
pub fn main(cli: &Cli) -> Result<()> {
|
||||
// Build up a map from prefix to matching CheckCodes.
|
||||
let mut prefix_to_codes: BTreeMap<String, BTreeSet<CheckCode>> = Default::default();
|
||||
let mut prefix_to_codes: BTreeMap<String, BTreeSet<CheckCode>> = BTreeMap::default();
|
||||
for check_code in CheckCode::iter() {
|
||||
let as_ref: String = check_code.as_ref().to_string();
|
||||
let prefix_len = as_ref
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue