Skip to content

Commit ad4450d

Browse files
committed
remove redundant struct field repetitions
1 parent b545492 commit ad4450d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ pub fn glob_with(pattern: &str, options: &MatchOptions)
251251
let todo = Vec::new();
252252

253253
Ok(Paths {
254-
dir_patterns: dir_patterns,
255-
require_dir: require_dir,
254+
dir_patterns,
255+
require_dir,
256256
options: options.clone(),
257-
todo: todo,
257+
todo,
258258
scope: Some(scope),
259259
})
260260
}
@@ -633,9 +633,9 @@ impl Pattern {
633633
}
634634

635635
Ok(Pattern {
636-
tokens: tokens,
636+
tokens,
637637
original: pattern.to_string(),
638-
is_recursive: is_recursive,
638+
is_recursive,
639639
})
640640
}
641641

0 commit comments

Comments
 (0)