We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2306a7 commit 49ceb8dCopy full SHA for 49ceb8d
1 file changed
src/git.rs
@@ -29,11 +29,7 @@ fn slugify_domain(domain: &str) -> String {
29
pub fn get_remotes() -> HashSet<String> {
30
let repo = Repository::open_from_env().expect("Couldn't find repository");
31
match repo.remotes() {
32
- Ok(remotes) => remotes
33
- .into_iter()
34
- .filter_map(|rem| rem)
35
- .map(String::from)
36
- .collect(),
+ Ok(remotes) => remotes.into_iter().flatten().map(String::from).collect(),
37
Err(_) => HashSet::new(),
38
}
39
0 commit comments