Skip to content

Commit

Permalink
Merge pull request #271 from epage/clippy
Browse files Browse the repository at this point in the history
style: Make clippy happy
  • Loading branch information
epage authored Jun 30, 2023
2 parents 827de0a + 71ad486 commit 475be6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trace/internals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub fn start<I: Stream>(
let (debug_slice, eof) = if let Some(debug_offset) = debug_slice
.char_indices()
.enumerate()
.find_map(|(pos, (offset, _))| (input_width <= pos).then(|| offset))
.find_map(|(pos, (offset, _))| (input_width <= pos).then_some(offset))
{
debug_slice.truncate(debug_offset);
let eof = "";
Expand Down

0 comments on commit 475be6d

Please sign in to comment.