diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2024-11-27 10:35:52 +0200 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2024-11-27 10:35:52 +0200 |
| commit | eb01a96121bd4aa20c16650d70dc6f20c85f969d (patch) | |
| tree | de3b4e4c0d4925a5b27f94550bf755a0dcb500ba /src/utils.rs | |
| parent | 0a3f676687fd6cc9c56ed3be975a15b4eb85b0c0 (diff) | |
| download | i3bar-mango-eb01a96121bd4aa20c16650d70dc6f20c85f969d.tar.gz | |
fix clippy lints
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs index 826edc0..a24ed75 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -63,7 +63,7 @@ pub fn de_first_json<'a, T: Deserialize<'a>>( ) -> Result<(Option<T>, &'a [u8]), JsonError> { while s .first() - .map_or(false, |&x| x == b' ' || x == b',' || x == b'\n') + .is_some_and(|&x| x == b' ' || x == b',' || x == b'\n') { s = &s[1..]; } |
