mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
nightly clippy fixes
This commit is contained in:
parent
4b107be7be
commit
c1565eb000
2 changed files with 2 additions and 5 deletions
|
|
@ -65,10 +65,7 @@ impl AsyncDiff {
|
|||
pub fn last(&mut self) -> Result<Option<(DiffParams, FileDiff)>> {
|
||||
let last = self.last.lock()?;
|
||||
|
||||
Ok(match last.clone() {
|
||||
Some(res) => Some((res.params, res.result)),
|
||||
None => None,
|
||||
})
|
||||
Ok(last.clone().map(|res| (res.params, res.result)))
|
||||
}
|
||||
|
||||
///
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ impl AsyncTags {
|
|||
{
|
||||
let mut last = arc_last.lock()?;
|
||||
let now = Instant::now();
|
||||
*last = Some((now, TagsResult { tags, hash }));
|
||||
*last = Some((now, TagsResult { hash, tags }));
|
||||
}
|
||||
|
||||
Ok(true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue