Skip to content

Commit 5bf6b52

Browse files
committed
thanks clippy
1 parent 259d015 commit 5bf6b52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-config/src/file/git_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ impl<'event> GitConfig<'event> {
477477
) -> Option<values::Path<'event>> {
478478
self.raw_value(section_name, subsection_name, key)
479479
.ok()
480-
.map(|v| values::Path::from(v))
480+
.map(values::Path::from)
481481
}
482482

483483
/// Like [`value()`][GitConfig::value()], but returning an `Option` if the boolean wasn't found.

git-glob/tests/pattern/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn display() {
66
fn pat(text: &str, mode: Mode) -> String {
77
Pattern {
88
text: text.into(),
9-
mode: mode,
9+
mode,
1010
first_wildcard_pos: None,
1111
}
1212
.to_string()

0 commit comments

Comments
 (0)