Skip to content

Commit 2f2ebaf

Browse files
committed
ran rust fmt
1 parent c7a9f32 commit 2f2ebaf

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tests/ui/cast.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ fn main() {
4848
1f32 as f32;
4949
false as bool;
5050
&1i32 as &i32;
51-
// macro version
52-
macro_rules! foo {
53-
($a:ident, $b:ident) => {
54-
pub fn $a() -> $b { 1 as $b }
55-
};
51+
// macro version
52+
macro_rules! foo {
53+
($a:ident, $b:ident) => {
54+
pub fn $a() -> $b {
55+
1 as $b
5656
}
57-
foo!(a, i32);
58-
foo!(b, f32);
59-
foo!(c, f64);
57+
};
58+
}
59+
foo!(a, i32);
60+
foo!(b, f32);
61+
foo!(c, f64);
6062

6163
// casting integer literal to float is unnecessary
6264
100 as f32;

0 commit comments

Comments
 (0)