Skip to content

Commit 2dbe6e5

Browse files
committed
fmt
1 parent 90da799 commit 2dbe6e5

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

src/gui/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -453,15 +453,15 @@ impl SpectrometerGui {
453453
if !self.running
454454
&& let Some((_camera_index, camera_info)) =
455455
self.camera_info.get_index(self.config.camera_id)
456-
{
457-
for cf in &camera_info.formats {
458-
ui.selectable_value(
459-
&mut self.config.camera_format,
460-
Some(*cf),
461-
format!("{}", cf),
462-
);
463-
}
456+
{
457+
for cf in &camera_info.formats {
458+
ui.selectable_value(
459+
&mut self.config.camera_format,
460+
Some(*cf),
461+
format!("{}", cf),
462+
);
464463
}
464+
}
465465
});
466466

467467
let connect_button = ui.button(if self.running { "Stop..." } else { "Start..." });

src/spectrum.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ impl SpectrumContainer {
108108

109109
// Clear buffer and zero reference on dimension change
110110
if let Some(s) = self.spectrum_buffer.front()
111-
&& s.ncols() != ncols {
112-
self.spectrum_buffer.clear();
113-
self.zero_reference = None;
114-
}
111+
&& s.ncols() != ncols
112+
{
113+
self.spectrum_buffer.clear();
114+
self.zero_reference = None;
115+
}
115116

116117
if config.spectrum_calibration.linearize != Linearize::Off {
117118
spectrum

0 commit comments

Comments
 (0)