Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Dec 22, 2024
1 parent 82314cc commit 7c8c403
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
wget -O data/variable-seg-size-hermite.bsp http://public-data.nyxspace.com/anise/ci/variable-seg-size-hermite.bsp
wget -O data/earth_latest_high_prec.bpc http://public-data.nyxspace.com/anise/ci/earth_latest_high_prec-2023-09-08.bpc
wget -O data/lro.bsp http://public-data.nyxspace.com/nyx/examples/lrorg_2023349_2024075_v01_LE.bsp
wget -O data/moon_pa_de440_200625.bpc http://public-data.nyxspace.com/anise/moon_pa_de440_200625.bpc
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -194,6 +193,8 @@ jobs:
wget -O data/variable-seg-size-hermite.bsp http://public-data.nyxspace.com/anise/ci/variable-seg-size-hermite.bsp
wget -O data/earth_latest_high_prec.bpc http://public-data.nyxspace.com/anise/ci/earth_latest_high_prec-2023-09-08.bpc
wget -O data/lro.bsp http://public-data.nyxspace.com/nyx/examples/lrorg_2023349_2024075_v01_LE.bsp
wget -O data/moon_fk_de440.epa http://public-data.nyxspace.com/anise/v0.5/moon_fk_de440.epa
wget -O data/moon_pa_de440_200625.bpc http://public-data.nyxspace.com/anise/moon_pa_de440_200625.bpc
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down
10 changes: 5 additions & 5 deletions anise/src/almanac/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl Almanac {
if let Ok(fileid) = file_record.identification() {
return match fileid {
"PCK" => {
info!("Loading {} as DAF/PCK", path.or(Some("bytes")).unwrap());
info!("Loading {} as DAF/PCK", path.unwrap_or("bytes"));
let bpc = BPC::parse(bytes)
.context(BPCSnafu {
action: "parsing bytes",
Expand All @@ -143,7 +143,7 @@ impl Almanac {
})
}
"SPK" => {
info!("Loading {} as DAF/SPK", path.or(Some("bytes")).unwrap());
info!("Loading {} as DAF/SPK", path.unwrap_or("bytes"));
let spk = SPK::parse(bytes)
.context(SPKSnafu {
action: "parsing bytes",
Expand Down Expand Up @@ -176,7 +176,7 @@ impl Almanac {
})?;
info!(
"Loading {} as ANISE spacecraft data",
path.or(Some("bytes")).unwrap()
path.unwrap_or("bytes")
);
Ok(self.with_spacecraft_data(dataset))
}
Expand All @@ -187,7 +187,7 @@ impl Almanac {
action: "loading as planetary data",
}
})?;
info!("Loading {} as ANISE/PCA", path.or(Some("bytes")).unwrap());
info!("Loading {} as ANISE/PCA", path.unwrap_or("bytes"));
Ok(self.with_planetary_data(dataset))
}
DataSetType::EulerParameterData => {
Expand All @@ -197,7 +197,7 @@ impl Almanac {
action: "loading Euler parameters",
}
})?;
info!("Loading {} as ANISE/EPA", path.or(Some("bytes")).unwrap());
info!("Loading {} as ANISE/EPA", path.unwrap_or("bytes"));
Ok(self.with_euler_parameters(dataset))
}
}
Expand Down

0 comments on commit 7c8c403

Please sign in to comment.