mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-26 13:29:53 +00:00
Remove unnecessary as_str
This commit is contained in:
1 parent
f02dbf381b
commit
7c596c7136
1 file changed
+1
-1
@@ -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