Skip to content

Commit 653f30f

Browse files
committed
more find().is_some() -> contains()
Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
1 parent 300b565 commit 653f30f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/shared/src/conversion.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ fn parse_bool(s: &str) -> Result<bool, Error> {
184184

185185
/// Does the format specifier have a time zone option?
186186
fn format_has_zone(fmt: &str) -> bool {
187-
fmt.find("%Z").is_some()
188-
|| fmt.find("%z").is_some()
189-
|| fmt.find("%:z").is_some()
190-
|| fmt.find("%#z").is_some()
191-
|| fmt.find("%+").is_some()
187+
fmt.contains("%Z")
188+
|| fmt.contains("%z")
189+
|| fmt.contains("%:z")
190+
|| fmt.contains("%#z")
191+
|| fmt.contains("%+")
192192
}
193193

194194
/// Convert a timestamp with a non-UTC time zone into UTC

0 commit comments

Comments
 (0)