aboutsummaryrefslogtreecommitdiff
path: root/src/indentation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/indentation.rs')
-rw-r--r--src/indentation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indentation.rs b/src/indentation.rs
index 5d90c06..2f3a853 100644
--- a/src/indentation.rs
+++ b/src/indentation.rs
@@ -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);
}