Skip to content

Commit

Permalink
Implement option type
Browse files Browse the repository at this point in the history
  • Loading branch information
matzipan committed May 2, 2024
1 parent 7c41b4c commit c6deb03
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 103 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions crates/lox_core/src/ndm/kvn/opm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub struct Opm {
object_id: KvnStringValue,
center_name: KvnStringValue,
ref_frame: KvnStringValue,
// ref_frame_epoch: KvnDateTimeValue,
time_system: KvnStringValue,
// comment: KvnStringValue,
epoch: KvnDateTimeValue,
Expand Down Expand Up @@ -161,9 +160,7 @@ MAN_DV_1 = 0.00101500 [km/s]
MAN_DV_2 = -0.00187300 [km/s]
MAN_DV_3 = 0.00000000 [km/s]"#;

let mut lines = kvn.lines();

let opm = Opm::deserialize(&mut lines);
let opm = Opm::deserialize(&mut kvn.lines().peekable());

assert_eq!(
opm,
Expand Down
Loading

0 comments on commit c6deb03

Please sign in to comment.