on master help sign in
cargo fmt
commitf60b549fb7c21ff92fe635729198555d704e5f93 authorBlaž Hrastnik <blaz@mxxn.io> dateFri 20 Aug 2021, 11:02 (5 years ago) parent68626b8
1 file changed+5−2
helix-term/src/commands.rs+5−2
helix-term/src/commands.rs+5−2
@@ -1509,7 +1509,10 @@ mod cmd {
15091509 return Ok(());
15101510 }
15111511
1512− let arg = args.get(0).context("argument missing")?.to_ascii_lowercase();
1512+ let arg = args
1513+ .get(0)
1514+ .context("argument missing")?
1515+ .to_ascii_lowercase();
15131516
15141517 // Attempt to parse argument as a line ending.
15151518 let line_ending = match arg {
@@ -1519,7 +1522,7 @@ mod cmd {
15191522 arg if arg.starts_with("lf") => LF,
15201523 arg if arg.starts_with("ff") => FF,
15211524 arg if arg.starts_with("nel") => Nel,
1522− _ => bail!("invalid line ending")
1525+ _ => bail!("invalid line ending"),
15231526 };
15241527
15251528 doc_mut!(cx.editor).line_ending = line_ending;