Remove unnecessary as_str
This commit is contained in:
parent
f02dbf381b
commit
7c596c7136
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user