Clippy: clear the two warnings that the whole tree fails on

The update tests' scratch helper only feeds unix-gated tests, and
receive_decorated takes the box the queue already put the protos in.
This commit is contained in:
Alexander Krylov
2026-10-25 04:34:05 +03:00
parent 947d65e64d
commit 961af30997
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -637,6 +637,10 @@ impl Streaming {
});
self.shared.ready.notify_one();
}
#[expect(
clippy::boxed_local,
reason = "the box is `Done::Decorated`'s, so moving it out copies nothing"
)]
fn receive_decorated(&mut self, x: i32, z: i32, region: Box<[Proto; 9]>) {
self.generation_scan.exhausted = false;
self.decorating -= 1;
+2
View File
@@ -781,6 +781,8 @@ mod tests {
use super::*;
use serde_json::json;
// Only the unix tests build an install tree; the path helper goes with them.
#[cfg_attr(not(unix), allow(dead_code))]
fn scratch(name: &str) -> PathBuf {
let dir = std::env::temp_dir().join(format!(
"horizon-server-update-{name}-{}",