Delete dead fields of deserialized cargo output
The dead_code lint was previously eroneously missing this dead code. Since this lint bug has been fixed, the unused field need to be removed or marked as `#[allow(dead_code)]`. Given that this struct is deserialized without #[serde(deny_unknown_fields)] it is ok to simply delete the never read fields.
This commit is contained in:
parent
f60c4ed197
commit
7342cc46f8
@ -2134,18 +2134,9 @@ pub struct CargoTarget<'a> {
|
|||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
#[serde(tag = "reason", rename_all = "kebab-case")]
|
#[serde(tag = "reason", rename_all = "kebab-case")]
|
||||||
pub enum CargoMessage<'a> {
|
pub enum CargoMessage<'a> {
|
||||||
CompilerArtifact {
|
CompilerArtifact { filenames: Vec<Cow<'a, str>>, target: CargoTarget<'a> },
|
||||||
package_id: Cow<'a, str>,
|
BuildScriptExecuted,
|
||||||
features: Vec<Cow<'a, str>>,
|
BuildFinished,
|
||||||
filenames: Vec<Cow<'a, str>>,
|
|
||||||
target: CargoTarget<'a>,
|
|
||||||
},
|
|
||||||
BuildScriptExecuted {
|
|
||||||
package_id: Cow<'a, str>,
|
|
||||||
},
|
|
||||||
BuildFinished {
|
|
||||||
success: bool,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn strip_debug(builder: &Builder<'_>, target: TargetSelection, path: &Path) {
|
pub fn strip_debug(builder: &Builder<'_>, target: TargetSelection, path: &Path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user