Skip to content

Commit

Permalink
Update rust edition to 2021
Browse files Browse the repository at this point in the history
This commit changes the Rust edition from the default of 2015 to the
latest of 2021.
  • Loading branch information
aag committed Nov 29, 2024
1 parent 91ad678 commit 05624f6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "eagle"
version = "0.1.0"
authors = ["Adam Goforth <[email protected]>"]
license = "MIT"
edition = "2021"

[dependencies]
notify = "^2.4.1"
Expand Down
4 changes: 2 additions & 2 deletions src/actions/command.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use actions::Action;
use crate::actions::Action;
use notify::Event;
use std::io::{self, Write};
use std::process::{Command, Stdio};
Expand Down Expand Up @@ -83,7 +83,7 @@ mod test {

use super::*;

use actions::Action;
use crate::actions::Action;
use notify::{Event, Op};
use std::path::PathBuf;

Expand Down
4 changes: 2 additions & 2 deletions src/actions/print.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use actions::Action;
use crate::actions::Action;
use notify::op;
use notify::op::Op;
use notify::Event;
Expand Down Expand Up @@ -57,7 +57,7 @@ mod test {

use super::*;

use actions::Action;
use crate::actions::Action;
use notify::{Event, Op};
use std::path::PathBuf;

Expand Down
6 changes: 3 additions & 3 deletions src/files_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::collections::HashMap;
use std::io;
use std::path::PathBuf;

use actions::Action;
use crate::actions::Action;

pub struct FilesWatcher {
watcher: Box<RecommendedWatcher>,
Expand Down Expand Up @@ -90,8 +90,8 @@ mod test {

use self::rand::distributions::Alphanumeric;
use self::rand::{thread_rng, Rng};
use actions::print::PrintAction;
use actions::Action;
use crate::actions::print::PrintAction;
use crate::actions::Action;
use std::env::temp_dir;
use std::fs::remove_file;
use std::fs::File;
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ pub mod files_watcher;
use std::path::PathBuf;
use std::process;

use actions::command::CommandAction;
use actions::print::PrintAction;
use actions::Action;
use crate::actions::command::CommandAction;
use crate::actions::print::PrintAction;
use crate::actions::Action;
use clap::Parser;
use config::SettingsConfig;
use files_watcher::FilesWatcher;
use crate::config::SettingsConfig;
use crate::files_watcher::FilesWatcher;

#[derive(Parser)]
#[command(version, about, long_about = None)]
Expand Down

0 comments on commit 05624f6

Please sign in to comment.