refactor: fix clippy lint
This commit is contained in:
parent
0bb2298ac6
commit
96c333262a
@ -488,7 +488,9 @@ impl CargoActor {
|
||||
// Skip certain kinds of messages to only spend time on what's useful
|
||||
JsonMessage::Cargo(message) => match message {
|
||||
cargo_metadata::Message::CompilerArtifact(artifact) if !artifact.fresh => {
|
||||
self.sender.send(CargoMessage::CompilerArtifact(artifact)).unwrap();
|
||||
self.sender
|
||||
.send(CargoMessage::CompilerArtifact(Box::new(artifact)))
|
||||
.unwrap();
|
||||
}
|
||||
cargo_metadata::Message::CompilerMessage(msg) => {
|
||||
self.sender.send(CargoMessage::Diagnostic(msg.message)).unwrap();
|
||||
@ -533,7 +535,7 @@ impl CargoActor {
|
||||
}
|
||||
|
||||
enum CargoMessage {
|
||||
CompilerArtifact(cargo_metadata::Artifact),
|
||||
CompilerArtifact(Box<cargo_metadata::Artifact>),
|
||||
Diagnostic(Diagnostic),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user