mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-31 10:18:16 +00:00
run clippy fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use quick_xml::name::Namespace;
|
||||
|
||||
#[derive(Debug, Clone, Default, PartialEq)]
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq)]
|
||||
pub struct NamespaceOwned(pub Vec<u8>);
|
||||
|
||||
impl<'a> From<Namespace<'a>> for NamespaceOwned {
|
||||
@@ -28,7 +28,7 @@ impl<'a> From<&'a Namespace<'a>> for NamespaceOwned {
|
||||
}
|
||||
|
||||
impl NamespaceOwned {
|
||||
pub fn as_ref(&self) -> Namespace<'_> {
|
||||
#[must_use] pub fn as_ref(&self) -> Namespace<'_> {
|
||||
Namespace(&self.0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user