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:
@@ -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;
|
||||
|
||||
@@ -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}-{}",
|
||||
|
||||
Reference in New Issue
Block a user