v0.1.4-pre.015-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-config-lib/tests/public_api.rs
|
||||
// version: 14
|
||||
// version: 15
|
||||
|
||||
//! Integration tests for the public `ksp-config-lib` bootstrap, registry, JSON/profile/composite, environment-resolution, sensitivity, Logging-adapter and
|
||||
//! management contracts.
|
||||
@@ -219,11 +219,11 @@ fn management_contracts_are_available_from_crate_root() {
|
||||
assert_eq!(logging.profiles()[0].profile_id(), "local_dev");
|
||||
assert_eq!(logging.profiles()[0].files().len(), 2);
|
||||
assert!(!logging.profiles()[0].files()[0].ansi());
|
||||
if let std::option::Option::Some(profile) = logging.profiles_mut().first_mut() {
|
||||
if let std::option::Option::Some(file) = profile.files_mut().first_mut() {
|
||||
file.set_ansi(false);
|
||||
assert!(!file.ansi());
|
||||
}
|
||||
if let std::option::Option::Some(profile) = logging.profiles_mut().first_mut()
|
||||
&& let std::option::Option::Some(file) = profile.files_mut().first_mut()
|
||||
{
|
||||
file.set_ansi(false);
|
||||
assert!(!file.ansi());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user