diff options
Diffstat (limited to 'src/zip/cp437.rs')
| -rw-r--r-- | src/zip/cp437.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zip/cp437.rs b/src/zip/cp437.rs index 6f6731a..91a3c00 100644 --- a/src/zip/cp437.rs +++ b/src/zip/cp437.rs | |||
| @@ -343,6 +343,7 @@ pub fn is_cp437(char: char) -> bool { | |||
| 343 | impl FromCp437<Vec<u8>> for String { | 343 | impl FromCp437<Vec<u8>> for String { |
| 344 | type Value = Self; | 344 | type Value = Self; |
| 345 | 345 | ||
| 346 | #[inline] | ||
| 346 | fn from_cp437(bytes: Vec<u8>) -> Self { | 347 | fn from_cp437(bytes: Vec<u8>) -> Self { |
| 347 | Self::from_cp437(bytes.as_slice()) | 348 | Self::from_cp437(bytes.as_slice()) |
| 348 | } | 349 | } |
| @@ -351,6 +352,7 @@ impl FromCp437<Vec<u8>> for String { | |||
| 351 | impl<const S: usize> FromCp437<[u8; S]> for String { | 352 | impl<const S: usize> FromCp437<[u8; S]> for String { |
| 352 | type Value = Self; | 353 | type Value = Self; |
| 353 | 354 | ||
| 355 | #[inline] | ||
| 354 | fn from_cp437(bytes: [u8; S]) -> Self { | 356 | fn from_cp437(bytes: [u8; S]) -> Self { |
| 355 | Self::from_cp437(bytes.as_slice()) | 357 | Self::from_cp437(bytes.as_slice()) |
| 356 | } | 358 | } |
