Fix clippy lints

This commit is contained in:
Emmanuel Gil Peyrot 2019-02-21 21:06:23 +01:00
commit f68826057b
4 changed files with 7 additions and 9 deletions

View file

@ -44,7 +44,7 @@ impl<'a> IntoAttributeValue for &'a str {
impl<T: IntoAttributeValue> IntoAttributeValue for Option<T> {
fn into_attribute_value(self) -> Option<String> {
self.and_then(|t| t.into_attribute_value())
self.and_then(IntoAttributeValue::into_attribute_value)
}
}