1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-03 14:32:22 +02:00

ignore: permit use of deprecated trim_right

This commit is contained in:
Andrew Gallant 2018-12-30 08:44:59 -05:00
parent b3c5773266
commit a9e0477ea8
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

View File

@ -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);
}