Skip to content

Commit 57f51a5

Browse files
seandewartjdevries
authored andcommitted
chore: remove rustfmt.toml
It uses nightly-only options, which have no effect on the output. The other options are already the default.
1 parent e3dcefd commit 57f51a5

4 files changed

Lines changed: 11 additions & 21 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ default-members = [
2828
"crates/vim9-lexer",
2929
"crates/vim9-parser",
3030
"crates/vim9-gen",
31+
"."
3132
]

crates/vim9-parser/src/cmds/cmd_if.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ pub struct ElseCommand {
3333

3434
impl IfCommand {
3535
pub fn parse(parser: &Parser) -> Result<ExCommand> {
36-
let if_endings: HashSet<String> = HashSet::from_iter(
37-
vec![
38-
"elseif".to_string(),
39-
"else".to_string(),
40-
"endif".to_string(),
41-
],
42-
);
36+
let if_endings: HashSet<String> = HashSet::from_iter(vec![
37+
"elseif".to_string(),
38+
"else".to_string(),
39+
"endif".to_string(),
40+
]);
4341

4442
Ok(ExCommand::If(IfCommand {
4543
if_tok: parser.expect_identifier_with_text("if")?.into(),

crates/vim9-parser/src/cmds/cmd_try.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ pub struct TryCommand {
1717

1818
impl TryCommand {
1919
pub fn parse(parser: &Parser) -> Result<ExCommand> {
20-
let try_endings: HashSet<String> = HashSet::from_iter(
21-
vec![
22-
"catch".to_string(),
23-
"finally".to_string(),
24-
"endtry".to_string(),
25-
],
26-
);
20+
let try_endings: HashSet<String> = HashSet::from_iter(vec![
21+
"catch".to_string(),
22+
"finally".to_string(),
23+
"endtry".to_string(),
24+
]);
2725

2826
Ok(ExCommand::Try(TryCommand {
2927
try_: parser.expect_identifier_with_text("try")?.into(),

rustfmt.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)