drop a lint that only fires on command macro noise

This commit is contained in:
2026-09-21 01:08:34 +03:00
parent 29cd5a8050
commit 630687945a
4 changed files with 19 additions and 3 deletions
+4 -1
View File
@@ -520,7 +520,10 @@ impl GraphicsCaptureApiHandler for CaptureHandler {
self.pipeline = Some(TonemapPipeline::new(device, self.width, self.height)?);
}
// process() takes the pipeline by mut ref; inline the Option dance.
let pipeline = self.pipeline.as_mut().expect("just initialized");
let pipeline = self
.pipeline
.as_mut()
.ok_or_else(|| anyhow!("tonemap pipeline missing after initialization"))?;
pipeline.process(device, context, src, stdin)?;
self.frame_count.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
+6
View File
@@ -1945,6 +1945,12 @@ async fn export(app: AppHandle, state: State<'_, AppState>, request: ExportReque
})
}
// Process startup: if the exe directory cannot be resolved or config.toml
// cannot be created there, there is no degraded mode worth continuing into.
#[allow(
clippy::expect_used,
reason = "fatal startup conditions with no sensible recovery"
)]
pub fn run() {
let app_dir = exe_dir().expect("resolve exe directory");