Skip to content

Commit

Permalink
Apply new clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Nov 20, 2022
1 parent d6b8c37 commit 56f0ed4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flussab/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ where
value = new_value;
}

((!overflow).then(|| value), offset)
((!overflow).then_some(value), offset)
}

#[cold]
Expand Down Expand Up @@ -62,7 +62,7 @@ where
value = new_value;
}

((!overflow).then(|| value), offset)
((!overflow).then_some(value), offset)
}

#[cold]
Expand Down Expand Up @@ -92,7 +92,7 @@ where
value = new_value;
}

((!overflow).then(|| value), offset)
((!overflow).then_some(value), offset)
}

/// Passes over ASCII digits, optionally prefixed by `'-`', and parses them as decimal number.
Expand Down Expand Up @@ -142,7 +142,7 @@ where
}
}

((!overflow).then(|| value), offset)
((!overflow).then_some(value), offset)
}

/// Optimized version of `ascii_digits`.
Expand Down

0 comments on commit 56f0ed4

Please sign in to comment.