Skip to content

Commit c1565eb

Browse files
author
Stephan Dilly
committed
nightly clippy fixes
1 parent 4b107be commit c1565eb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

asyncgit/src/diff.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ impl AsyncDiff {
6565
pub fn last(&mut self) -> Result<Option<(DiffParams, FileDiff)>> {
6666
let last = self.last.lock()?;
6767

68-
Ok(match last.clone() {
69-
Some(res) => Some((res.params, res.result)),
70-
None => None,
71-
})
68+
Ok(last.clone().map(|res| (res.params, res.result)))
7269
}
7370

7471
///

asyncgit/src/tags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl AsyncTags {
112112
{
113113
let mut last = arc_last.lock()?;
114114
let now = Instant::now();
115-
*last = Some((now, TagsResult { tags, hash }));
115+
*last = Some((now, TagsResult { hash, tags }));
116116
}
117117

118118
Ok(true)

0 commit comments

Comments
 (0)