Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exporting some enums#89

Merged
elpiel merged 7 commits into
AeroRust:mainfrom
ekuinox:feature/export-types
May 14, 2023
Merged

Exporting some enums#89
elpiel merged 7 commits into
AeroRust:mainfrom
ekuinox:feature/export-types

Conversation

@ekuinox
Copy link
Copy Markdown

@ekuinox ekuinox commented Apr 25, 2023

Changes

I Added below enums exporting.

  • RmcNavigationStatus
  • GsaMode1
  • GsaMode2
  • PgrmzFixType

I think it would be better to rename NavigationStatus to GnsNavigationStatus to clarify the difference from RmcNavigationStatus. However, this would be a destructive change, so I would like your opinion.
I think it would be better to export the names of both NavigationStatus and GnsNavigationStatus, but encourage NavigationStatus to use #[deprecated] to use GnsNavigationStatus.

@elpiel
Copy link
Copy Markdown
Member

elpiel commented Apr 27, 2023

Hmmm... I would instead leave them in their respective module making them public and keep the same names. If someone wants to rename the import they can do it. Long names are never something I personally prefer.

We can do breaking changes, it's not a big deal, especially bumping minor versions.

And Thank you for the PR!

@ekuinox
Copy link
Copy Markdown
Author

ekuinox commented May 2, 2023

Changed to make all modules under nmea::sentences public.
Also, some SentenceType parsing was missing, so it has been added.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2023

Codecov Report

Patch coverage: 33.33% and project coverage change: -0.04 ⚠️

Comparison is base (2d30392) 80.35% compared to head (f465474) 80.31%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
- Coverage   80.35%   80.31%   -0.04%     
==========================================
  Files          33       33              
  Lines        1196     1199       +3     
==========================================
+ Hits          961      963       +2     
- Misses        235      236       +1     
Impacted Files Coverage Δ
src/sentences/mod.rs 0.00% <ø> (ø)
src/parse.rs 73.62% <33.33%> (-0.24%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Member

@elpiel elpiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

I'll merge this as it is, however, I plan to tweak it a bit and do not expose all modules publicly when they have only 1 element (excluding sentences themselves).

@elpiel elpiel merged commit 512fd1a into AeroRust:main May 14, 2023
@ekuinox ekuinox deleted the feature/export-types branch May 14, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants