Skip to content

Commit 3edaa60

Browse files
committed
Fix hdf5 feature flags.
1 parent 877db0f commit 3edaa60

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
with:
1515
toolchain: stable
1616
profile: minimal
17-
- run: cargo build
18-
- run: cargo test
17+
- run: cargo build --release -p lognplot
18+
- run: cargo test -p lognplot

lognplotgtk/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use std::sync::Arc;
2424

2525
pub use state::{GuiState, GuiStateHandle};
2626

27-
#[cfg(not(features = "hdf5"))]
27+
#[cfg(not(feature = "hdf5"))]
2828
mod io {
2929
use super::GuiStateHandle;
3030

lognplotgtk/src/state.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ impl GuiState {
3939
self.db.delete_all();
4040
}
4141

42-
#[cfg(features = "hdf5")]
42+
#[cfg(feature = "hdf5")]
4343
pub fn save(&self, filename: &Path) -> Result<(), String> {
4444
info!("Save data to {:?}", filename);
4545
super::io::export_data(self.db.clone(), filename).map_err(|e| e.to_string())
4646
}
4747

48-
#[cfg(features = "hdf5")]
48+
#[cfg(feature = "hdf5")]
4949
pub fn load(&self, filename: &Path) -> Result<(), String> {
5050
super::io::import_data(self.db.clone(), filename).map_err(|e| e.to_string())
5151
}
5252

53-
#[cfg(not(features = "hdf5"))]
53+
#[cfg(not(feature = "hdf5"))]
5454
pub fn load(&self, filename: &Path) -> Result<(), String> {
5555
Err("No hdf5 support!".to_owned())
5656
}

swviewer/src/serial_wire_viewer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ impl<'m> SerialWireViewer<'m> {
154154
visible.push_str(&String::from_utf8(part).unwrap());
155155
}
156156
print!("{}", visible);
157-
157+
158158
// println!("")
159-
160159
}
161160
_ => {
162161
info!("Trace packet: {:?}", packet);

swviewer/src/stlink.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ const STLINK_V3S_PID: u16 = 0x374F;
1414
fn find_st_link() -> rusb::Result<Option<rusb::Device<rusb::GlobalContext>>> {
1515
let first_match = rusb::devices()?.iter().find(|d| {
1616
if let Ok(desc) = d.device_descriptor() {
17-
if
18-
desc.vendor_id() == STLINK_VID {
17+
if desc.vendor_id() == STLINK_VID {
1918
match desc.product_id() {
2019
STLINK_V2_PID | STLINK_V2_1_PID => true,
2120
_ => false,

0 commit comments

Comments
 (0)