Implement Clone for EncodingError

This commit is contained in:
dylni
2022-11-10 19:44:22 -05:00
parent 7b61cf518d
commit 46d865dfff
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ deprecated_checked_conversion! {
/// [`OsStrExt`]: ::std::os::unix::ffi::OsStrExt
/// [`OsStringExt`]: ::std::os::unix::ffi::OsStringExt
/// [`Result::unwrap`]: ::std::result::Result::unwrap
#[derive(Debug, Eq, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(
os_str_bytes_docs_rs,
doc(cfg(feature = "checked_conversions"))
+1 -1
View File
@@ -13,7 +13,7 @@ if_raw_str! {
pub(super) mod raw;
}
#[derive(Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(super) struct EncodingError(Utf8Error);
impl Display for EncodingError {
+1 -1
View File
@@ -24,7 +24,7 @@ use wtf8::DecodeWide;
#[cfg(test)]
mod tests;
#[derive(Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(super) enum EncodingError {
Byte(u8),
CodePoint(u32),