Skip to content

Commit ecc9edd

Browse files
committed
refactor: rustfmt
1 parent 240c737 commit ecc9edd

File tree

2 files changed

+13
-4
lines changed
  • crates/bevy_derive/compile_fail/tests
  • tools/compile_fail_utils/src

2 files changed

+13
-4
lines changed

crates/bevy_derive/compile_fail/tests/derive.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
fn main() -> compile_fail_utils::ui_test::Result<()> {
2-
compile_fail_utils::test_multiple("derive_deref", ["tests/deref_derive", "tests/deref_mut_derive"])
2+
compile_fail_utils::test_multiple(
3+
"derive_deref",
4+
["tests/deref_derive", "tests/deref_mut_derive"],
5+
)
36
}
4-

tools/compile_fail_utils/src/lib.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,17 @@ pub fn test_with_multiple_configs(
109109
test_name: impl Into<String>,
110110
configs: impl IntoIterator<Item = ui_test::Result<Config>>,
111111
) -> ui_test::Result<()> {
112-
let configs = configs.into_iter().collect::<ui_test::Result<Vec<Config>>>()?;
112+
let configs = configs
113+
.into_iter()
114+
.collect::<ui_test::Result<Vec<Config>>>()?;
113115

114116
let emitter: Box<dyn StatusEmitter + Send> = if env::var_os("CI").is_some() {
115-
Box::new((Text::verbose(), Gha::<true> { name: test_name.into() }))
117+
Box::new((
118+
Text::verbose(),
119+
Gha::<true> {
120+
name: test_name.into(),
121+
},
122+
))
116123
} else {
117124
Box::new(Text::quiet())
118125
};

0 commit comments

Comments
 (0)