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 6734b3f commit 8769b09
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
26 changes: 12 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ pub enum SysKind {

// TODO: Remove exemption once the implementation is complete.
#[allow(dead_code)]

/// Specifies a reference to a twiddled type library and its extended type library.
#[derive(Debug)]
pub struct ReferenceControl {
Expand All @@ -120,7 +119,6 @@ pub struct ReferenceControl {

// TODO: Remove exemption once the implementation is complete.
#[allow(dead_code)]

/// Specifies the identifier of the Automation type library the containing
/// [`ReferenceControl`]'s twiddled type library was generated from.
#[derive(Debug)]
Expand All @@ -132,7 +130,6 @@ pub struct ReferenceOriginal {

// TODO: Remove exemption once the implementation is complete.
#[allow(dead_code)]

/// Specifies a reference to an Automation type library.
#[derive(Debug)]
pub struct ReferenceRegistered {
Expand All @@ -142,7 +139,6 @@ pub struct ReferenceRegistered {

// TODO: Remove exemption once the implementation is complete.
#[allow(dead_code)]

/// Specifies a reference to an external VBA project.
#[derive(Debug)]
pub struct ReferenceProject {
Expand All @@ -166,24 +162,26 @@ 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,
_lcid_invoke: lcid_invoke,
lcid,
lcid_invoke,
code_page,
_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,
name,
doc_string,
help_file_1,
help_context,
lib_flags,
version_major,
version_minor,
constants,
},
references,
modules,
Expand Down

0 comments on commit 8769b09

Please sign in to comment.