Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yag000 committed Aug 30, 2023
1 parent 3485c3e commit f88794f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ pub struct Settings {
impl Default for Settings {
fn default() -> Self {
Self {
wallpaper_dir: String::from(format!(
wallpaper_dir: format!(
"{}/Pictures/Wallpapers",
home::home_dir().unwrap().to_str().unwrap()
)),
),
betterlockscreen: false,
sleep_time: 1800,
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod cli;
pub mod configuration;
pub mod wallpaper;
pub mod setup;
pub mod wallpaper;
2 changes: 1 addition & 1 deletion src/wallpaper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ pub fn get_next_animated_wallpaper(settings: &Settings, path: &Path) -> Option<P
.expect("failed to convert file name to str")
.chars()
.rev()
.take_while(|c| c.is_digit(10))
.take_while(|c| c.is_ascii_digit())
.collect::<String>()
.chars()
.rev()
Expand Down

0 comments on commit f88794f

Please sign in to comment.