summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-12-30 08:44:59 -0500
committerAndrew Gallant <jamslam@gmail.com>2018-12-30 08:44:59 -0500
commita9e0477ea85a0bbe9ddeac609f7e48a8cc628fa3 (patch)
treec63c69fb4b83fff4e8b665826ca7e49a4eb92658
parentb3c5773266faf435faa970e5545f057aad09aaee (diff)
ignore: permit use of deprecated trim_right
-rw-r--r--ignore/src/gitignore.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index 15827fd2..a151e2de 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -419,6 +419,8 @@ impl GitignoreBuilder {
from: Option<PathBuf>,
mut line: &str,
) -> Result<&mut GitignoreBuilder, Error> {
+ #![allow(deprecated)]
+
if line.starts_with("#") {
return Ok(self);
}