Skip to content

Commit 2403e3f

Browse files
committed
fix:polaris-rust clippy
1 parent e740e70 commit 2403e3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/config/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ pub fn load<P: AsRef<Path>>(path: P) -> Result<Configuration, io::Error> {
4848
let val = fs::read_to_string(path);
4949
if val.is_ok() {
5050
let data = val.ok().unwrap();
51-
let config: Configuration =
52-
serde_yaml::from_str(&data).unwrap_or_else(|_| panic!("failure to format yaml str {}", &data));
51+
let config: Configuration = serde_yaml::from_str(&data)
52+
.unwrap_or_else(|_| panic!("failure to format yaml str {}", &data));
5353
return Ok(config);
5454
}
5555
Err(val.err().unwrap())

src/core/model/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::{
1717
collections::HashMap,
1818
sync::{atomic::AtomicBool, Arc},
1919
thread::sleep,
20-
time::{Duration},
20+
time::Duration,
2121
};
2222

2323
use tokio::sync::RwLock;

0 commit comments

Comments
 (0)