fix: patch module based on reports from iniBuilds A350 launch #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes across different files to improve error handling, add new enum variants, and enhance initialization logic. The most important changes are grouped by theme below.
Error Handling Improvements:
src/database/src/database.rs
: Changed the handling ofValueRef::Blob
to returnNone
instead of panicking.src/database/src/output/airspace.rs
: Updatedimpl Path
to useunwrap_or_default
for coordinates and handle invalid path types gracefully. [1] [2]src/database/src/output/fix.rs
: Modifiedimpl Fix
to returnFixType::None
instead of panicking for unexpected table values.src/database/src/output/procedure_leg.rs
: Updatedimpl From<sql_structs::Procedures> for ProcedureLeg
to useunwrap_or_default
and provide default values for missing data. [1] [2] [3]Enum Enhancements:
src/database/src/enums.rs
: Added new variantsEither
toTurnDirection
andPaved
toRunwaySurface
. [1] [2]src/database/src/output/airspace.rs
: AddedUnknown
variant toPathType
.Initialization and Update Logic:
src/wasm/src/dispatcher.rs
: Introducedfirst_update
flag inDispatcher
to handle initialization on the first update and adjusteddelta_time
initialization. [1] [2] [3]Utility Function Improvements:
src/wasm/src/util.rs
: Enhanced file handling functions to check for empty file names more safely. [1] [2]SIMDEV-350