Skip to content

Commit e681a02

Browse files
authored
Merge pull request #2 from ArthurMatthys/main
fix for rust issue #79813
2 parents 3c47c91 + fcec2ac commit e681a02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/macros.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ macro_rules! vec_or_none {
1717
.collect::<Vec<_>>()
1818
}
1919
})
20-
.unwrap_or(Vec::new());
20+
.unwrap_or(Vec::new())
2121
};
2222
// for generating currencies structs, convert the currencies json
2323
// object to a valid rust struct
@@ -34,7 +34,7 @@ macro_rules! vec_or_none {
3434
.collect::<Vec<_>>()
3535
}
3636
})
37-
.unwrap_or(Vec::new());
37+
.unwrap_or(Vec::new())
3838
};
3939
// for generating language structs, convert the language json
4040
// object to a valid rust struct
@@ -51,7 +51,7 @@ macro_rules! vec_or_none {
5151
.collect::<Vec<_>>()
5252
}
5353
})
54-
.unwrap_or(Vec::new());
54+
.unwrap_or(Vec::new())
5555
};
5656
// for generating timezone structs, convert the timezone json
5757
// object to a valid rust struct
@@ -81,15 +81,15 @@ macro_rules! value_or_none {
8181
$country_data
8282
.get($key)
8383
.map(|value| value.to_string())
84-
.unwrap_or(String::from("None"));
84+
.unwrap_or(String::from("None"))
8585
};
8686
}
8787

8888
// parse the token stream from the built static map initilization
8989
#[macro_export]
9090
macro_rules! tokens {
9191
( $variable : expr ) => {
92-
TokenStream::from_str(&$variable.build().to_string())?;
92+
TokenStream::from_str(&$variable.build().to_string())?
9393
};
9494
}
9595

0 commit comments

Comments
 (0)