Skip to content

Commit

Permalink
🐛 Fix some missing re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
rster2002 committed Jan 31, 2025
1 parent f37bae5 commit 1e8d612
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/modules/civilization/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub use models::conflict::Conflict;

Check warning on line 1 in src/modules/civilization/mod.rs

View workflow job for this annotation

GitHub Actions / cargo fmt

Diff in /home/runner/work/ed-journals/ed-journals/src/modules/civilization/mod.rs
pub use models::conflict::ConflictStatus;
pub use models::conflict::ConflictFaction;
pub use models::conflict::ConflictWarType;
pub use models::crime::Crime;
Expand Down
8 changes: 6 additions & 2 deletions src/modules/logs/content/log_event_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ use crate::logs::content::log_event_content::start_jump_event::StartJumpType;
use crate::modules::partials::PartialSystemInfo;

#[cfg(feature = "legacy")]
use crate::logs::content::log_event_content::legacy_liftoff_event::LegacyLiftoffEvent;
use legacy_liftoff_event::LegacyLiftoffEvent;

#[cfg(feature = "legacy")]
use crate::logs::content::log_event_content::legacy_touchdown_event::LegacyTouchdownEvent;
use legacy_touchdown_event::LegacyTouchdownEvent;

pub mod afmu_repairs_event;
pub mod applied_to_squadron_event;
Expand Down Expand Up @@ -499,9 +499,11 @@ pub mod wing_join_event;
pub mod won_a_trophy_for_squadron_event;

#[cfg(feature = "legacy")]
#[cfg_attr(docsrs, doc(cfg(feature = "legacy")))]
pub mod legacy_liftoff_event;

#[cfg(feature = "legacy")]
#[cfg_attr(docsrs, doc(cfg(feature = "legacy")))]
pub mod legacy_touchdown_event;

/// Enum containing all the possible events that can be found in a [JournalFile].
Expand Down Expand Up @@ -803,10 +805,12 @@ pub enum LogEventContent {

// Legacy
#[cfg(feature = "legacy")]
#[cfg_attr(docsrs, doc(cfg(feature = "legacy")))]
#[serde(untagged)]
LegacyLiftoffEvent(LegacyLiftoffEvent),

#[cfg(feature = "legacy")]
#[cfg_attr(docsrs, doc(cfg(feature = "legacy")))]
#[serde(untagged)]
LegacyTouchdownEvent(LegacyTouchdownEvent),

Expand Down
17 changes: 14 additions & 3 deletions src/modules/ship/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//! the different modules that can be equipped.
//!
//! You usually want to use one of the top-level models like:
//! * [ShipType] for parsing which type of ship is being used.
//! * [ShipModule] for parsing any kind of ship module, including optional- and core internals,
//! * [ShipType](crate::ship::ShipType) for parsing which type of ship is being used.
//! * [ShipModule](crate::ship::ShipModule) for parsing any kind of ship module, including optional- and core internals,
//! full-sized hardpoints and utility modules, hulls and cosmetics and some internal modules which
//! are not modules which can be outfitted, but they may appear in some of the journal logs.
//! * [FighterType] and [SRVType] are small enums to specify their respective variants.
//! * [FighterType](crate::ship::FighterType) and [SRVType](crate::ship::SRVType) are small enums to specify their respective variants.
pub use models::blueprint::Blueprint;
pub use models::blueprint_modifier::BlueprintModifier;
Expand All @@ -18,6 +18,16 @@ pub use models::ship_module::ship_cockpit_module::ShipCockpitModule;
pub use models::ship_module::ship_cockpit_module::ShipCockpitModuleError;
pub use models::ship_module::ship_decal::ShipDecal;
pub use models::ship_module::ship_decal::ShipDecalError;

Check warning on line 20 in src/modules/ship/mod.rs

View workflow job for this annotation

GitHub Actions / cargo fmt

Diff in /home/runner/work/ed-journals/ed-journals/src/modules/ship/mod.rs
pub use models::ship_module::ship_engine_color::ShipEngineColor;
pub use models::ship_module::ship_engine_color::ShipEngineColorError;
pub use models::ship_module::ship_weapon_color::ShipWeaponColor;
pub use models::ship_module::ship_weapon_color::ShipWeaponColorError;
pub use models::ship_module::ship_kit_module::ShipKitModule;
pub use models::ship_module::ship_kit_module::ShipKitModuleError;
pub use models::ship_module::ship_bobble::ShipBobble;
pub use models::ship_module::ship_bobble::ShipBobbleError;
pub use models::ship_module::ship_string_lights::ShipStringLights;
pub use models::ship_module::ship_string_lights::ShipStringLightsError;
pub use models::ship_module::ship_hardpoint_module::hardpoint_module::HardpointModule;
pub use models::ship_module::ship_hardpoint_module::hardpoint_mounting::HardpointMounting;
pub use models::ship_module::ship_hardpoint_module::hardpoint_size::HardpointSize;
Expand All @@ -43,6 +53,7 @@ pub use models::ship_module::ShipModule;
pub use models::ship_slot::ShipSlot;
pub use models::ship_slot::ShipSlotError;
pub use models::ship_slot::ShipSlotKind;
pub use models::ship_slot::core_slot::CoreSlot;

Check warning on line 56 in src/modules/ship/mod.rs

View workflow job for this annotation

GitHub Actions / cargo fmt

Diff in /home/runner/work/ed-journals/ed-journals/src/modules/ship/mod.rs
pub use models::ship_type::ShipType;
pub use models::ship_type::ShipTypeError;
pub use models::srv_type::SRVType;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ship/models/ship_module/ship_engine_color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::from_str_deserialize_impl;

#[derive(Debug, Serialize, Clone, PartialEq)]
pub struct ShipEngineColor {
name: String,
pub name: String,
}

#[derive(Debug, Error)]
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ship/models/ship_module/ship_string_lights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::from_str_deserialize_impl;

#[derive(Debug, Serialize, Clone, PartialEq)]
pub struct ShipStringLights {
name: String,
pub name: String,
}

#[derive(Debug, Error)]
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ship/models/ship_module/ship_weapon_color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::from_str_deserialize_impl;

#[derive(Debug, Serialize, Clone, PartialEq)]
pub struct ShipWeaponColor {
name: String,
pub name: String,
}

#[derive(Debug, Error)]
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ship/models/ship_slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::from_str_deserialize_impl;
use crate::modules::ship::models::ship_slot::core_slot::CoreSlot;
use crate::modules::ship::{HardpointSize, HardpointSizeError};

mod core_slot;
pub mod core_slot;

#[derive(Debug, Serialize, Clone, PartialEq)]
pub struct ShipSlot {
Expand Down

0 comments on commit 1e8d612

Please sign in to comment.