remove unwrap_or! macro
This commit is contained in:
parent
44995f7afb
commit
77fce75ba1
3 changed files with 8 additions and 17 deletions
|
@ -20,16 +20,6 @@
|
|||
#[macro_use]
|
||||
extern crate rustc_macros;
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! unwrap_or {
|
||||
($opt:expr, $default:expr) => {
|
||||
match $opt {
|
||||
Some(x) => x,
|
||||
None => $default,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
pub mod util {
|
||||
pub mod classify;
|
||||
pub mod comments;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue