mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-01 13:38:01 +00:00
Remove need for allow(unreachable_code)
This commit is contained in:
@@ -73,3 +73,12 @@ impl ToTokens for Match {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<Tokens> for Fragment {
|
||||
fn as_ref(&self) -> &Tokens {
|
||||
match *self {
|
||||
Fragment::Expr(ref expr) => expr,
|
||||
Fragment::Block(ref block) => block,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user