From f3d15778b4007b69f5ccc02f86a61f70d82b167b Mon Sep 17 00:00:00 2001 From: Sam Vente Date: Sun, 9 Jun 2024 20:58:03 +0200 Subject: [PATCH] apply some clippy lints --- helix-term/src/commands/typed.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 355830a5f..71a182790 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -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"));