Skip to content

Commit 2a2d4b3

Browse files
committed
run cargo fmt
1 parent 58c958f commit 2a2d4b3

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

crates/stackable-operator/src/product_logging/framework.rs

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,12 +1567,9 @@ mod tests {
15671567
#[test]
15681568
fn log4j2_config() {
15691569
let log_config = AutomaticContainerLogConfig {
1570-
loggers: vec![(
1571-
"ROOT".to_string(),
1572-
LoggerConfig {
1573-
level: LogLevel::INFO,
1574-
},
1575-
)]
1570+
loggers: vec![("ROOT".to_string(), LoggerConfig {
1571+
level: LogLevel::INFO,
1572+
})]
15761573
.into_iter()
15771574
.collect::<BTreeMap<String, LoggerConfig>>(),
15781575
console: Some(AppenderConfig {
@@ -1602,24 +1599,15 @@ mod tests {
16021599
fn log4j2_config_with_additional_loggers() {
16031600
let log_config = AutomaticContainerLogConfig {
16041601
loggers: vec![
1605-
(
1606-
"ROOT".to_string(),
1607-
LoggerConfig {
1608-
level: LogLevel::INFO,
1609-
},
1610-
),
1611-
(
1612-
"test".to_string(),
1613-
LoggerConfig {
1614-
level: LogLevel::INFO,
1615-
},
1616-
),
1617-
(
1618-
"test_2".to_string(),
1619-
LoggerConfig {
1620-
level: LogLevel::DEBUG,
1621-
},
1622-
),
1602+
("ROOT".to_string(), LoggerConfig {
1603+
level: LogLevel::INFO,
1604+
}),
1605+
("test".to_string(), LoggerConfig {
1606+
level: LogLevel::INFO,
1607+
}),
1608+
("test_2".to_string(), LoggerConfig {
1609+
level: LogLevel::DEBUG,
1610+
}),
16231611
]
16241612
.into_iter()
16251613
.collect::<BTreeMap<String, LoggerConfig>>(),

0 commit comments

Comments
 (0)