Skip to content

Commit ef4f220

Browse files
committed
chore: add comments showcasing that the defaults are there to appease the linter, not to actually assume any data
1 parent 1964180 commit ef4f220

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/database/src/output/fix.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize};
22

33
use crate::math::Coordinates;
44

5-
#[derive(Serialize, Deserialize, Copy, Clone, Debug, Default)]
5+
#[derive(Serialize, Deserialize, Copy, Clone, Debug)]
66
pub enum FixType {
77
#[serde(rename = "A")]
88
Airport,
@@ -16,13 +16,12 @@ pub enum FixType {
1616
IlsNavaid,
1717
#[serde(rename = "V")]
1818
VhfNavaid,
19-
#[default]
2019
#[serde(rename = "W")]
2120
Waypoint,
2221
}
2322

2423
#[serde_with::skip_serializing_none]
25-
#[derive(Serialize, Clone, Default)]
24+
#[derive(Serialize, Clone)]
2625
/// Represents a fix which was used as a reference in a procedure or an airway.
2726
///
2827
/// Every `Fix` will have a full data entry as one of these structs somewhere in the database with the same `ident` and

0 commit comments

Comments
 (0)