Remove unnecessary as_str

This commit is contained in:
Armin Ronacher 2018-03-20 13:11:17 +01:00
parent f02dbf381b
commit 7c596c7136

View File

@ -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,
}
}