Skip to content

Commit 54e3f89

Browse files
committed
Fixes lint error that occurs in Rust 1.68
- This suppresses the 'derivable-impls' lint error the that was rised in Clippy in version 1.68 of rust. Becuase it suggest that the default for the enum BusType should be derived and the default should be marked with a '#[default]' indicator. The problem is that this lint is only experimental in rust 1.57 and using this will cause a lint error that cannot be suppressed which would cause the MSRV CI build to fail. Signed-off-by: Jesper Brynolf <[email protected]>
1 parent 1a02c8f commit 54e3f89

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tss-esapi-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ fn main() {
5757
}
5858
}
5959

60-
#[allow(clippy::uninlined_format_args)]
6160
#[cfg(feature = "generate-bindings")]
61+
#[allow(clippy::uninlined_format_args)]
6262
pub fn generate_from_system(esapi_out: PathBuf) {
6363
pkg_config::Config::new()
6464
.atleast_version(MINIMUM_VERSION)

tss-esapi/src/tcti_ldr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ pub enum BusType {
633633
Session,
634634
}
635635

636+
#[allow(clippy::derivable_impls)] // Remove this when MSRV is higher then 1.57
636637
impl Default for BusType {
637638
fn default() -> Self {
638639
BusType::System

0 commit comments

Comments
 (0)