Skip to content

Commit 49ceb8d

Browse files
committed
Replace filter_map with flatten to appease clippy.
1 parent e2306a7 commit 49ceb8d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/git.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ fn slugify_domain(domain: &str) -> String {
2929
pub fn get_remotes() -> HashSet<String> {
3030
let repo = Repository::open_from_env().expect("Couldn't find repository");
3131
match repo.remotes() {
32-
Ok(remotes) => remotes
33-
.into_iter()
34-
.filter_map(|rem| rem)
35-
.map(String::from)
36-
.collect(),
32+
Ok(remotes) => remotes.into_iter().flatten().map(String::from).collect(),
3733
Err(_) => HashSet::new(),
3834
}
3935
}

0 commit comments

Comments
 (0)