Skip to content

Commit 9101570

Browse files
author
Stephan Dilly
committed
clippy fix
1 parent f92363a commit 9101570

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/externaleditor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ impl ExternalEditorComponent {
8181
// does not address spaces in pn
8282
let mut echars = editor.chars().peekable();
8383

84-
let command: String = if *echars.peek().ok_or_else(|| {
84+
let first_char = *echars.peek().ok_or_else(|| {
8585
anyhow!("editor configuration set to empty string")
86-
})? == '\"'
87-
{
86+
})?;
87+
let command: String = if first_char == '\"' {
8888
echars
8989
.by_ref()
9090
.skip(1)

0 commit comments

Comments
 (0)