Skip to content

Commit 3740a84

Browse files
committed
Disables the clippy multiple_crate_versions lint error.
In Rust version 1.77 clippy has begun reporting errors for when two versions of the same crate exists among the dependencies. In this case it is the `syn` crate for which there exists two versions. This is to the reason that the `zeroize_derive` crate updated the `syn` version after making a Rust Edition bump. So the ones using Rust Edition 2018 gets an older version of `eroize_derive` which uses `syn` with major release version 1. Signed-off-by: Jesper Brynolf <jesper.brynolf@gmail.com>
1 parent e1d708a commit 3740a84

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tss-esapi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "tss-esapi"
33
version = "8.0.0-alpha"
44
authors = ["Parsec Project Contributors"]
5-
edition = "2018"
5+
edition = "2018" # TODO Update edition to 2021 - Remove the disabled lints that are due to using old edition.
66
description = "Rust-native wrapper around TSS 2.0 Enhanced System API"
77
readme = "README.md"
88
keywords = ["tpm", "tss", "esys", "esapi"]

tss-esapi/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
missing_copy_implementations,
3030
rustdoc::broken_intra_doc_links,
3131
)]
32-
32+
// This comes from Zeroize they changed version of Syn used
33+
// when zeroize_derive was updated to Rust Edition 2021.
34+
// TODO: Remove this when updating Rust Edition.
35+
#![allow(clippy::multiple_crate_versions)]
3336
//! # TSS 2.0 Rust Wrapper over Enhanced System API
3437
//! This crate exposes the functionality of the TCG Software Stack Enhanced System API to
3538
//! Rust developers, both directly through FFI bindings and through more Rust-tailored interfaces

0 commit comments

Comments
 (0)