File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ config.workspace = true
1616futures.workspace = true
1717glob.workspace = true
1818hex.workspace = true
19- keylime. workspace = true
19+ keylime = { workspace = true , features = [] }
2020libc.workspace = true
2121log.workspace = true
2222openssl.workspace = true
@@ -40,7 +40,7 @@ actix-rt.workspace = true
4040[features ]
4141# The features enabled by default
4242default = []
43- testing = []
43+ testing = [" keylime/testing " ]
4444# Whether the agent should be compiled with support to listen for notification
4545# messages on ZeroMQ
4646#
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ async-trait.workspace = true
1515base64.workspace = true
1616chrono.workspace = true
1717clap.workspace = true
18- keylime. workspace = true
18+ keylime = { workspace = true , features = [] }
1919log.workspace = true
2020predicates.workspace = true
2121pretty_env_logger.workspace = true
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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) ]
3637pub 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) ]
5961pub 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) ]
6669pub enum ValidationError { }
6770
6871impl ConfigError { }
You can’t perform that action at this time.
0 commit comments