diff options
| author | Igor Tolmachev <me@igorek.dev> | 2024-07-17 17:38:19 +0900 |
|---|---|---|
| committer | Igor Tolmachev <me@igorek.dev> | 2024-07-17 17:38:19 +0900 |
| commit | 5f4ceda88c7299deb317f8d22a99ab2521c5a380 (patch) | |
| tree | 6b0d7e0ae99376079c599ee897fe73c2e5035420 /src/zip/cp437.rs | |
| parent | 2f0f96ce4625d2ef1273c7bea98a1e9415419fdf (diff) | |
| download | archivator-5f4ceda88c7299deb317f8d22a99ab2521c5a380.tar.gz archivator-5f4ceda88c7299deb317f8d22a99ab2521c5a380.zip | |
Add more `#[inline]` markers
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 | } |
