We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b107be commit c1565ebCopy full SHA for c1565eb
asyncgit/src/diff.rs
@@ -65,10 +65,7 @@ impl AsyncDiff {
65
pub fn last(&mut self) -> Result<Option<(DiffParams, FileDiff)>> {
66
let last = self.last.lock()?;
67
68
- Ok(match last.clone() {
69
- Some(res) => Some((res.params, res.result)),
70
- None => None,
71
- })
+ Ok(last.clone().map(|res| (res.params, res.result)))
72
}
73
74
///
asyncgit/src/tags.rs
@@ -112,7 +112,7 @@ impl AsyncTags {
112
{
113
let mut last = arc_last.lock()?;
114
let now = Instant::now();
115
- *last = Some((now, TagsResult { tags, hash }));
+ *last = Some((now, TagsResult { hash, tags }));
116
117
118
Ok(true)
0 commit comments