Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed Aug 6, 2024
1 parent f30b3c5 commit 00e4655
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/actions/onboarding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ use super::{load_os, mount_fs};
pub fn onboarding(custom_tarball: Option<&String>, arch: Option<&str>) -> Result<()> {
ctrlc::set_handler(move || {
let _ = Term::stderr().show_cursor();
}).expect("Error setting Ctrl-C handler");
})
.expect("Error setting Ctrl-C handler");

let theme = ColorfulTheme::default();
info!("Welcome to ciel!");
Expand Down
6 changes: 3 additions & 3 deletions src/repo/monitor.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use crate::info;
use anyhow::Result;
use console::style;
use fs3::FileExt;
use inotify::{Inotify, WatchMask};
use std::{
Expand All @@ -10,8 +12,6 @@ use std::{
thread::sleep,
time::Duration,
};
use crate::info;
use console::style;

use super::refresh_repo;

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

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

0 comments on commit 00e4655

Please sign in to comment.