Skip to content

Commit f142aa5

Browse files
committed
cargo clippy
1 parent 8947d43 commit f142aa5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/info/title.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ impl Title {
4141
}
4242
pub fn get_git_username(repo: &Repository) -> String {
4343
repo.committer()
44-
.map(Result::ok)
45-
.flatten()
44+
.and_then(Result::ok)
4645
.map(|c| c.name.to_string())
4746
.unwrap_or_default()
4847
}

0 commit comments

Comments
 (0)