Skip to content

Commit be3ae79

Browse files
removed-glob_tilde_expansion-method-from-MatcherOption
1 parent d5dd7a8 commit be3ae79

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,11 +1131,6 @@ impl MatchOptions {
11311131
pub fn new() -> Self {
11321132
Self::default()
11331133
}
1134-
/// Enables or disables tilde (`~`) expansion in glob patterns
1135-
pub fn glob_tilde_expansion(mut self, v: bool) -> Self {
1136-
self.glob_tilde_expansion = v;
1137-
self
1138-
}
11391134
}
11401135

11411136
#[cfg(test)]

src/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extern crate glob;
2+
use glob::{glob_with, MatchOptions};
3+
4+
fn main() {
5+
let options = MatchOptions::new().glob_tilde_expansion(true);
6+
for v in glob_with("~eagle/*", options).unwrap() {
7+
println!("> {:?}", v.unwrap());
8+
}
9+
}

0 commit comments

Comments
 (0)