Fix some basic clippy stuff
This commit is contained in:
2 files changed
+3
-5
No files matched your search
@@ -807,7 +807,7 @@ impl<'a, 'b> IntoDynNode<'b> for &'a str {
|
||||
impl IntoDynNode<'_> for &String {
|
||||
fn into_dyn_node(self, cx: &ScopeState) -> DynamicNode {
|
||||
DynamicNode::Text(VText {
|
||||
value: cx.bump().alloc_str(&self),
|
||||
value: cx.bump().alloc_str(self),
|
||||
id: Default::default(),
|
||||
})
|
||||
}
|
||||
@@ -909,7 +909,7 @@ impl<'a> IntoAttributeValue<'a> for String {
|
||||
|
||||
impl<'a> IntoAttributeValue<'a> for &String {
|
||||
fn into_value(self, cx: &'a Bump) -> AttributeValue<'a> {
|
||||
AttributeValue::Text(cx.alloc_str(&self))
|
||||
AttributeValue::Text(cx.alloc_str(self))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user