diff --git a/pkstrings/src/lib.rs b/pkstrings/src/lib.rs index 63e67a3..2216e40 100644 --- a/pkstrings/src/lib.rs +++ b/pkstrings/src/lib.rs @@ -215,7 +215,7 @@ pub enum Error { InvalidCharacter, } -#[derive(Debug, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] pub struct PKString(String); impl Deref for PKString { @@ -226,12 +226,6 @@ impl Deref for PKString { } } -impl Clone for PKString { - fn clone(&self) -> PKString { - PKString(self.0.clone()) - } -} - impl fmt::Display for PKString { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_fmt(format_args!("{}", &self.0))