Skip to content

Commit 96c3332

Browse files
refactor: fix clippy lint
1 parent 0bb2298 commit 96c3332

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/flycheck/src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ impl CargoActor {
488488
// Skip certain kinds of messages to only spend time on what's useful
489489
JsonMessage::Cargo(message) => match message {
490490
cargo_metadata::Message::CompilerArtifact(artifact) if !artifact.fresh => {
491-
self.sender.send(CargoMessage::CompilerArtifact(artifact)).unwrap();
491+
self.sender
492+
.send(CargoMessage::CompilerArtifact(Box::new(artifact)))
493+
.unwrap();
492494
}
493495
cargo_metadata::Message::CompilerMessage(msg) => {
494496
self.sender.send(CargoMessage::Diagnostic(msg.message)).unwrap();
@@ -533,7 +535,7 @@ impl CargoActor {
533535
}
534536

535537
enum CargoMessage {
536-
CompilerArtifact(cargo_metadata::Artifact),
538+
CompilerArtifact(Box<cargo_metadata::Artifact>),
537539
Diagnostic(Diagnostic),
538540
}
539541

0 commit comments

Comments
 (0)