apply some clippy lints

pull/10905/head
Sam Vente 6 months ago
parent 9f0fd62127
commit f3d15778b4
No known key found for this signature in database

@ -501,15 +501,13 @@ fn parse_mark_register_contents(
let mut rv_iter = rv.into_iter();
let Some(doc_id) = rv_iter
.next()
.and_then(|c| Some(c.into_owned()))
.next().map(|c| c.into_owned())
.and_then(|s| s.try_into().ok())
else {
return Err(anyhow!("Register did not contain valid document id"));
};
let Some(history_rev) = rv_iter
.next()
.and_then(|c| Some(c.into_owned()))
.next().map(|c| c.into_owned())
.and_then(|s| s.parse().ok())
else {
return Err(anyhow!("Register did not contain valid revision number"));

Loading…
Cancel
Save