File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ use super::{load_os, mount_fs};
19
19
pub fn onboarding ( custom_tarball : Option < & String > , arch : Option < & str > ) -> Result < ( ) > {
20
20
ctrlc:: set_handler ( move || {
21
21
let _ = Term :: stderr ( ) . show_cursor ( ) ;
22
- } ) . expect ( "Error setting Ctrl-C handler" ) ;
22
+ } )
23
+ . expect ( "Error setting Ctrl-C handler" ) ;
23
24
24
25
let theme = ColorfulTheme :: default ( ) ;
25
26
info ! ( "Welcome to ciel!" ) ;
Original file line number Diff line number Diff line change
1
+ use crate :: info;
1
2
use anyhow:: Result ;
3
+ use console:: style;
2
4
use fs3:: FileExt ;
3
5
use inotify:: { Inotify , WatchMask } ;
4
6
use std:: {
@@ -10,8 +12,6 @@ use std::{
10
12
thread:: sleep,
11
13
time:: Duration ,
12
14
} ;
13
- use crate :: info;
14
- use console:: style;
15
15
16
16
use super :: refresh_repo;
17
17
@@ -70,7 +70,7 @@ fn refresh_once(pool_path: &Path) -> Result<()> {
70
70
71
71
pub fn start_monitor ( pool_path : & Path , stop_token : Receiver < ( ) > ) -> Result < ( ) > {
72
72
// ensure lock exists
73
- let lock_path = pool_path. join ( LOCK_FILE ) ;
73
+ let lock_path = pool_path. join ( LOCK_FILE ) ;
74
74
if !Path :: exists ( & lock_path) {
75
75
File :: create ( & lock_path) ?;
76
76
info ! ( "Creating lock file at {}..." , LOCK_FILE ) ;
You can’t perform that action at this time.
0 commit comments