From 6734b3f7fa77e2ceb65df0e06853109501b6cab3 Mon Sep 17 00:00:00 2001 From: Tim Weis Date: Mon, 2 Dec 2024 20:24:09 +0100 Subject: [PATCH] clippy --- src/lib.rs | 23 ++++++++++------------- src/parser.rs | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3a2ef16..77a5865 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -166,27 +166,24 @@ pub enum Reference { Project(ReferenceProject), } -// TODO: Remove exemption once the implementation is complete. -#[allow(dead_code)] - /// Specifies version-independent information for the VBA project. #[derive(Debug)] pub struct Information { /// Specifies the platform for which the VBA project is created. pub sys_kind: SysKind, - lcid: u32, - lcid_invoke: u32, + _lcid: u32, + _lcid_invoke: u32, /// Specifies the code page for the VBA project. /// pub code_page: u16, - name: String, - doc_string: String, - help_file_1: String, - help_context: u32, - lib_flags: u32, - version_major: u32, - version_minor: u16, - constants: String, + _name: String, + _doc_string: String, + _help_file_1: String, + _help_context: u32, + _lib_flags: u32, + _version_major: u32, + _version_minor: u16, + _constants: String, } /// Specifies the containing module's type. diff --git a/src/parser.rs b/src/parser.rs index 7bb5b35..2a79aa4 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -604,17 +604,17 @@ pub(crate) fn parse_project_information( ProjectInformation { information: Information { sys_kind, - lcid, - lcid_invoke, + _lcid: lcid, + _lcid_invoke: lcid_invoke, code_page, - name, - doc_string, - help_file_1, - help_context, - lib_flags, - version_major, - version_minor, - constants, + _name: name, + _doc_string: doc_string, + _help_file_1: help_file_1, + _help_context: help_context, + _lib_flags: lib_flags, + _version_major: version_major, + _version_minor: version_minor, + _constants: constants, }, references, modules,