polish: clean up warnings

This commit is contained in:
Jonathan Kelley committed 2021-09-21 18:13:09 -04:00
1 parent e881b86d2e
commit b32e2611e3
21 files changed
+126 -129

No files matched your search

+2 -2
View File
@@ -237,8 +237,8 @@ where
// # Safety
//
// - This is the canonical example of using `ManuallyDrop`.
let value = ManuallyDrop::into_inner(ptr::read(&mut self.0));
let drop = ManuallyDrop::into_inner(ptr::read(&mut self.1));
let value = ManuallyDrop::into_inner(ptr::read(&self.0));
let drop = ManuallyDrop::into_inner(ptr::read(&self.1));
drop(value);
}
}
+2 -2
View File
@@ -86,11 +86,11 @@ impl Parse for AmbiguousElement<AS_HTML> {
if first_char.is_ascii_uppercase() {
input
.parse::<Component<AS_HTML>>()
.map(|c| AmbiguousElement::Component(c))
.map(AmbiguousElement::Component)
} else {
input
.parse::<Element<AS_HTML>>()
.map(|c| AmbiguousElement::Element(c))
.map(AmbiguousElement::Element)
}
} else {
Err(Error::new(input.span(), "Not a valid Html tag"))
+1 -1
View File
@@ -270,7 +270,7 @@ fn parse_rsx_element_field(
name,
value: ty,
namespace: None,
element_name: element_name.clone(),
element_name,
});
return Ok(());
}