From 62aaae347d87c5c9411f1e9f8db525b7c2c603d2 Mon Sep 17 00:00:00 2001 From: Igor Tolmachev Date: Fri, 21 Jun 2024 13:39:27 +0900 Subject: Save changes 2024-06-21 --- src/lib.rs | 2 +- src/structs/ser.rs | 4 ++-- src/zip/file.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 236c58d..c9cd1ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,8 @@ mod archive; mod error; -mod structs; pub mod driver; +pub mod structs; pub mod zip; 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 { Ok(()) } - fn serialize_char(self, v: char) -> StructResult<()> { + fn serialize_char(self, _v: char) -> StructResult<()> { Err(StructError::SerializationNotSupported { type_name: "char" }.into()) } @@ -106,7 +106,7 @@ impl ser::Serializer for &mut ArchiveSerializer { .into()) } - fn serialize_some(self, value: &T) -> StructResult<()> + fn serialize_some(self, _value: &T) -> StructResult<()> where T: ?Sized + Serialize, { 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 { impl ArchiveFile for ZipFile {} impl ZipFile { - pub fn new( + pub(crate) fn new( name: String, dos_date: u16, dos_time: u16, -- cgit v1.2.3