Skip to content

Commit 38cfc05

Browse files
committed
Fix clippy warnings
Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
1 parent 06c25d4 commit 38cfc05

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

keylime-agent/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ config.workspace = true
1616
futures.workspace = true
1717
glob.workspace = true
1818
hex.workspace = true
19-
keylime.workspace = true
19+
keylime = { workspace = true, features = [] }
2020
libc.workspace = true
2121
log.workspace = true
2222
openssl.workspace = true
@@ -40,7 +40,7 @@ actix-rt.workspace = true
4040
[features]
4141
# The features enabled by default
4242
default = []
43-
testing = []
43+
testing = ["keylime/testing"]
4444
# Whether the agent should be compiled with support to listen for notification
4545
# messages on ZeroMQ
4646
#

keylime-push-model-agent/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async-trait.workspace = true
1515
base64.workspace = true
1616
chrono.workspace = true
1717
clap.workspace = true
18-
keylime.workspace = true
18+
keylime = { workspace = true, features = [] }
1919
log.workspace = true
2020
predicates.workspace = true
2121
pretty_env_logger.workspace = true

keylime-push-model-agent/src/struct_filler.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,6 @@ mod tests {
664664

665665
let filler = FillerFromHardware::new(&mut ctx);
666666
assert!(filler.uefi_log_handler.is_none());
667-
668667
assert!(ctx.flush_context().is_ok());
669668
}
670669
}

keylimectl/src/commands/agent.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,12 +2130,13 @@ async fn validate_tpm_quote(
21302130
}
21312131

21322132
// Handle the 'r' prefix - remove the single 'r' character as documented
2133-
let quote_data_clean = if let Some(stripped) = quote_data.strip_prefix('r') {
2134-
debug!("Removing 'r' prefix from quote data");
2135-
stripped
2136-
} else {
2137-
quote_data
2138-
};
2133+
let quote_data_clean =
2134+
if let Some(stripped) = quote_data.strip_prefix('r') {
2135+
debug!("Removing 'r' prefix from quote data");
2136+
stripped
2137+
} else {
2138+
quote_data
2139+
};
21392140

21402141
debug!("Cleaned quote data length: {}", quote_data_clean.len());
21412142

keylimectl/src/config/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use thiserror::Error;
3333
/// This enum covers all error conditions that can occur during configuration
3434
/// operations, from file loading to validation and environment variable processing.
3535
#[derive(Error, Debug)]
36+
#[allow(dead_code)]
3637
pub enum ConfigError {
3738
/// Configuration file loading errors
3839
#[error("Configuration file error: {0}")]
@@ -56,13 +57,15 @@ pub enum ConfigError {
5657
/// These errors represent issues when loading configuration files,
5758
/// including file system errors and format issues.
5859
#[derive(Error, Debug)]
60+
#[allow(dead_code)]
5961
pub enum LoadError {}
6062

6163
/// Configuration validation errors
6264
///
6365
/// These errors represent validation failures for specific configuration
6466
/// values, providing detailed context about what is wrong and how to fix it.
6567
#[derive(Error, Debug)]
68+
#[allow(dead_code)]
6669
pub enum ValidationError {}
6770

6871
impl ConfigError {}

0 commit comments

Comments
 (0)