From: Scott Worley Date: Wed, 16 Jul 2025 10:02:11 +0000 (-0700) Subject: Clippy prefers is_none_or() X-Git-Url: http://git.scottworley.com/tablify/commitdiff_plain/f9d0e394e4d7731775aa236386b895e2effad788?hp=03b61def1a7e9d1c4dd09d1ffaf5558658afd661 Clippy prefers is_none_or() --- diff --git a/src/lib.rs b/src/lib.rs index 4773b88..fb55610 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -421,7 +421,7 @@ fn column_header_labels<'a>( let dynamic_columns = columns.iter().map(Some); static_columns .chain(dynamic_columns) - .filter(|ocol| ocol.map_or(true, |col| !config.hidden_columns.contains(col))) + .filter(|ocol| ocol.is_none_or(|col| !config.hidden_columns.contains(col))) .map(|ocol| { ocol.map(|col| match config.substitute_labels.get(col) { None => col,