diff options
author | Canop <cano.petrole@gmail.com> | 2021-01-04 19:52:23 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-01-04 19:55:37 +0100 |
commit | c7a6713cde3e68f087edc23f2e3b1e43321aedbf (patch) | |
tree | 714915e6b520874a9c48c5b1f93cd5ed10bc2800 /src/display | |
parent | 1129e66c27a290c80ea181e5c80de14602b07d1f (diff) |
fix handling of rules starting with '/' in the global gitignore
Fix #321
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/matched_string.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/display/matched_string.rs b/src/display/matched_string.rs index 99456b4..68b4dc9 100644 --- a/src/display/matched_string.rs +++ b/src/display/matched_string.rs @@ -46,6 +46,7 @@ impl<'a, 'w> MatchedString<'a> { let mut s = self.string; if let Some(dw) = self.display_width { let w = unicode_width::UnicodeWidthStr::width(s); + #[allow(clippy::comparison_chain)] if w > dw { let (count_bytes, _) = StrFit::count_fitting(s, dw); s = &s[0..count_bytes]; |