Skip to content

Commit 53202f8

Browse files
Apply cargo fmt (#1813)
Signed-off-by: salaheldinsoliman <[email protected]>
1 parent d1ab5d1 commit 53202f8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

fmt/src/buffer.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,10 @@ mod tests {
379379
let mut buf = buf.clone();
380380
buf.dedent(delta);
381381
}));
382-
assert!(res.is_err(), "Expected panic on extra dedent, but did not get one");
382+
assert!(
383+
res.is_err(),
384+
"Expected panic on extra dedent, but did not get one"
385+
);
383386
}
384387

385388
#[test]

fmt/tests/formatter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: Apache-2.0
22

3-
use solang_forge_fmt::{format_to, parse, solang_ext::AstEq, FormatterConfig};
43
use itertools::Itertools;
4+
use solang_forge_fmt::{format_to, parse, solang_ext::AstEq, FormatterConfig};
55
use std::{fs, path::PathBuf};
66
use tracing_subscriber::{EnvFilter, FmtSubscriber};
77

src/bin/languageserver/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: Apache-2.0
22

3-
use solang_forge_fmt::{format_to, parse, FormatterConfig};
43
use itertools::Itertools;
54
use num_traits::ToPrimitive;
65
use rust_lapper::{Interval, Lapper};
@@ -18,6 +17,7 @@ use solang::{
1817
},
1918
Target,
2019
};
20+
use solang_forge_fmt::{format_to, parse, FormatterConfig};
2121
use solang_parser::pt;
2222
use std::{
2323
collections::{HashMap, HashSet},

0 commit comments

Comments
 (0)