Skip to content

Commit dd84306

Browse files
refactor: remove boxing
1 parent 96c3332 commit dd84306

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: crates/flycheck/src/lib.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,7 @@ 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
492-
.send(CargoMessage::CompilerArtifact(Box::new(artifact)))
493-
.unwrap();
491+
self.sender.send(CargoMessage::CompilerArtifact(artifact)).unwrap();
494492
}
495493
cargo_metadata::Message::CompilerMessage(msg) => {
496494
self.sender.send(CargoMessage::Diagnostic(msg.message)).unwrap();
@@ -535,7 +533,7 @@ impl CargoActor {
535533
}
536534

537535
enum CargoMessage {
538-
CompilerArtifact(Box<cargo_metadata::Artifact>),
536+
CompilerArtifact(cargo_metadata::Artifact),
539537
Diagnostic(Diagnostic),
540538
}
541539

0 commit comments

Comments
 (0)