diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 2 | ||||
| -rw-r--r-- | src/structs/ser.rs | 4 | ||||
| -rw-r--r-- | src/zip/file.rs | 2 |
3 files changed, 4 insertions, 4 deletions
| @@ -1,8 +1,8 @@ | |||
| 1 | mod archive; | 1 | mod archive; |
| 2 | mod error; | 2 | mod error; |
| 3 | mod structs; | ||
| 4 | 3 | ||
| 5 | pub mod driver; | 4 | pub mod driver; |
| 5 | pub mod structs; | ||
| 6 | pub mod zip; | 6 | pub mod zip; |
| 7 | 7 | ||
| 8 | pub use archive::Archive; | 8 | pub use archive::Archive; |
diff --git a/src/structs/ser.rs b/src/structs/ser.rs index 6833fb8..5c26182 100644 --- a/src/structs/ser.rs +++ b/src/structs/ser.rs | |||
| @@ -87,7 +87,7 @@ impl ser::Serializer for &mut ArchiveSerializer { | |||
| 87 | Ok(()) | 87 | Ok(()) |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | fn serialize_char(self, v: char) -> StructResult<()> { | 90 | fn serialize_char(self, _v: char) -> StructResult<()> { |
| 91 | Err(StructError::SerializationNotSupported { type_name: "char" }.into()) | 91 | Err(StructError::SerializationNotSupported { type_name: "char" }.into()) |
| 92 | } | 92 | } |
| 93 | 93 | ||
| @@ -106,7 +106,7 @@ impl ser::Serializer for &mut ArchiveSerializer { | |||
| 106 | .into()) | 106 | .into()) |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | fn serialize_some<T>(self, value: &T) -> StructResult<()> | 109 | fn serialize_some<T>(self, _value: &T) -> StructResult<()> |
| 110 | where | 110 | where |
| 111 | T: ?Sized + Serialize, | 111 | T: ?Sized + Serialize, |
| 112 | { | 112 | { |
diff --git a/src/zip/file.rs b/src/zip/file.rs index 3b63c2a..d5b3327 100644 --- a/src/zip/file.rs +++ b/src/zip/file.rs | |||
| @@ -13,7 +13,7 @@ pub struct ZipFile { | |||
| 13 | impl ArchiveFile for ZipFile {} | 13 | impl ArchiveFile for ZipFile {} |
| 14 | 14 | ||
| 15 | impl ZipFile { | 15 | impl ZipFile { |
| 16 | pub fn new( | 16 | pub(crate) fn new( |
| 17 | name: String, | 17 | name: String, |
| 18 | dos_date: u16, | 18 | dos_date: u16, |
| 19 | dos_time: u16, | 19 | dos_time: u16, |
