Address review comments
This commit is contained in:
parent
a699f17483
commit
11580ced40
5 changed files with 11 additions and 13 deletions
|
@ -2448,10 +2448,7 @@ pub enum Extern {
|
|||
|
||||
impl Extern {
|
||||
pub fn from_abi(abi: Option<StrLit>) -> Extern {
|
||||
match abi {
|
||||
Some(abi) => Extern::Explicit(abi),
|
||||
None => Extern::Implicit,
|
||||
}
|
||||
abi.map_or(Extern::Implicit, Extern::Explicit)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue