Merge pull request #274631 from artemist/replace-workspace-lints

rustPlatform.importCargoLock: copy lints from workspace
This commit is contained in:
Pol Dellaiera 2023-12-16 19:45:00 +01:00 committed by GitHub
commit 92960168a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,13 @@ def main() -> None:
workspace_manifest, crate_manifest["target"][key]
)
if (
"lints" in crate_manifest
and "workspace" in crate_manifest["lints"]
and crate_manifest["lints"]["workspace"] is True
):
crate_manifest["lints"] = workspace_manifest["lints"]
if not changed:
return