Skip to content

Commit c2c7625

Browse files
committed
style: run cargo clippy and cargo fmt to lint code
1 parent 0b51b53 commit c2c7625

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ fn main() {
5656
let mut out = out
5757
.trim()
5858
.split('\n')
59-
.map(|x| x.rsplit_once(" "))
60-
.flatten()
59+
.filter_map(|x| x.rsplit_once(' '))
6160
.map(|x| x.0);
6261

6362
match out.next() {
@@ -150,7 +149,7 @@ fn get_repo(path: PathBuf) -> Result<Repo> {
150149
..gix::open::Permissions::default_for_level(sec::Trust::Full)
151150
});
152151
let shared_repo = match ThreadSafeRepository::discover_with_environment_overrides_opts(
153-
&path,
152+
path,
154153
Default::default(),
155154
git_open_opts_map,
156155
) {

0 commit comments

Comments
 (0)