Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 13, 2024
1 parent 2532324 commit c5635c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn do_file_replacements(
let r = regex::RegexBuilder::new(pattern).multi_line(true).build()?;

let min = replace.min.or(replace.exactly).unwrap_or(1);
let max = replace.max.or(replace.exactly).unwrap_or(std::usize::MAX);
let max = replace.max.or(replace.exactly).unwrap_or(usize::MAX);
let actual = r.find_iter(&replaced).count();
if actual < min {
anyhow::bail!(
Expand Down

0 comments on commit c5635c0

Please sign in to comment.