Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-weis committed Dec 2, 2024
1 parent 442b65c commit 6734b3f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
23 changes: 10 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 10 additions & 10 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6734b3f

Please sign in to comment.