mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-30 05:07:55 +00:00
Remove unnecessary as_str
This commit is contained in:
@@ -272,7 +272,7 @@ mod content {
|
||||
pub fn as_str(&self) -> Option<&str> {
|
||||
match *self {
|
||||
Content::Str(x) => Some(x),
|
||||
Content::String(ref x) => Some(x.as_str()),
|
||||
Content::String(ref x) => Some(x),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user