Skip to content

Commit

Permalink
Merge pull request #479 from mgeisler/clippy
Browse files Browse the repository at this point in the history
Fix small Clippy warning
  • Loading branch information
mgeisler authored Oct 1, 2022
2 parents 62f8a48 + 52bfa33 commit ff039c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indentation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub fn dedent(s: &str) -> String {
// We now go over the lines a second time to build the result.
let mut result = String::new();
for line in s.lines() {
if line.starts_with(&prefix) && line.chars().any(|c| !c.is_whitespace()) {
if line.starts_with(prefix) && line.chars().any(|c| !c.is_whitespace()) {
let (_, tail) = line.split_at(prefix.len());
result.push_str(tail);
}
Expand Down

0 comments on commit ff039c2

Please sign in to comment.