pkstrings: Derive Clone rather
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
ee931b4f8c
commit
681813f53a
1 changed files with 1 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue