mirror of
https://github.com/openharmony/third_party_rust_os_str_bytes.git
synced 2026-07-18 08:05:03 -04:00
Implement Clone for EncodingError
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user