Skip to content

Commit 00e4655

Browse files
committed
lint
1 parent f30b3c5 commit 00e4655

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/actions/onboarding.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ use super::{load_os, mount_fs};
1919
pub fn onboarding(custom_tarball: Option<&String>, arch: Option<&str>) -> Result<()> {
2020
ctrlc::set_handler(move || {
2121
let _ = Term::stderr().show_cursor();
22-
}).expect("Error setting Ctrl-C handler");
22+
})
23+
.expect("Error setting Ctrl-C handler");
2324

2425
let theme = ColorfulTheme::default();
2526
info!("Welcome to ciel!");

src/repo/monitor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
use crate::info;
12
use anyhow::Result;
3+
use console::style;
24
use fs3::FileExt;
35
use inotify::{Inotify, WatchMask};
46
use std::{
@@ -10,8 +12,6 @@ use std::{
1012
thread::sleep,
1113
time::Duration,
1214
};
13-
use crate::info;
14-
use console::style;
1515

1616
use super::refresh_repo;
1717

@@ -70,7 +70,7 @@ fn refresh_once(pool_path: &Path) -> Result<()> {
7070

7171
pub fn start_monitor(pool_path: &Path, stop_token: Receiver<()>) -> Result<()> {
7272
// ensure lock exists
73-
let lock_path = pool_path.join(LOCK_FILE);
73+
let lock_path = pool_path.join(LOCK_FILE);
7474
if !Path::exists(&lock_path) {
7575
File::create(&lock_path)?;
7676
info!("Creating lock file at {}...", LOCK_FILE);

0 commit comments

Comments
 (0)