Fix clippy::default-trait-access (pedantic) (#867)

This commit is contained in:
Anders Kaseorg 2022-11-21 18:00:38 -08:00 committed by GitHub
parent 59615486d8
commit 7a61edbe46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 256 additions and 241 deletions

View file

@ -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