diff --git a/Cargo.toml b/Cargo.toml index f6e3293d99d4..697c8902881e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -428,7 +428,6 @@ manual_ok_or = "warn" manual_string_new = "warn" map_err_ignore = "warn" map_flatten = "warn" -map_unwrap_or = "warn" match_on_vec_items = "warn" match_same_arms = "warn" match_wild_err_arm = "warn" @@ -499,6 +498,7 @@ zero_sized_map_values = "warn" #self_named_module_files = "warn" manual_range_contains = "allow" # this one is just worse imho +map_unwrap_or = "allow" # so is this one ref_patterns = "allow" # It's nice to avoid ref pattern, but there are some situations that are hard (impossible?) to express without. # TODO(emilk): enable more of these lints: