Skip to content

Commit 6ec804e

Browse files
committed
Merge pull request #104 from Frederick888/lint-redundant-map-or into master
* lint-redundant-map-or: style: Replace map_or() with is_some_and()
2 parents a05ac02 + d2d3e9f commit 6ec804e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn associated_databases<T: AsRef<str>>(
8181
}
8282
};
8383
if let Ok((ref taso_resp, _)) = taso_resp {
84-
success = taso_resp.success.as_ref().map_or(false, |s| *s.as_ref());
84+
success = taso_resp.success.as_ref().is_some_and(|s| *s.as_ref());
8585
}
8686
if taso_resp.is_err() || !success {
8787
warn!(

0 commit comments

Comments
 (0)