diff options
| author | shogo-nakano-desu <61229807+shogo-nakano-desu@users.noreply.github.com> | 2023-09-15 16:47:39 +0900 |
|---|---|---|
| committer | shogo-nakano-desu <61229807+shogo-nakano-desu@users.noreply.github.com> | 2023-09-15 16:47:39 +0900 |
| commit | 96c333262a51d98a11fb0fed949e5ef55e40cd87 (patch) | |
| tree | bdbaa8d019b3403d8287afcff099c25aa1588a61 | |
| parent | 0bb2298ac604e0654652418e63a9eb15a82f155c (diff) | |
| download | rust-96c333262a51d98a11fb0fed949e5ef55e40cd87.tar.gz rust-96c333262a51d98a11fb0fed949e5ef55e40cd87.zip | |
refactor: fix clippy lint
| -rw-r--r-- | crates/flycheck/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/flycheck/src/lib.rs b/crates/flycheck/src/lib.rs index 2de719af92c..61433313921 100644 --- a/crates/flycheck/src/lib.rs +++ b/crates/flycheck/src/lib.rs @@ -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), } |
