Compare commits

..

No commits in common. "368ac084493e25f660b1f01a3d4072e25a72c114" and "e99cbeec6e45b64c3020f178862bec77c8c0c8e1" have entirely different histories.

2 changed files with 6 additions and 14 deletions

View File

@ -48,22 +48,13 @@ impl Wallpapers {
pub fn random_selection(&self, monitor_type: MonitorType) { pub fn random_selection(&self, monitor_type: MonitorType) {
match monitor_type { match monitor_type {
MonitorType::Ultrawide => { MonitorType::Ultrawide => {
println!( println!("{:?}", self.ultrawide.choose(&mut rand::thread_rng()));
"{:?}",
self.ultrawide.choose(&mut rand::thread_rng()).unwrap()
);
} }
MonitorType::Horizontal => { MonitorType::Horizontal => {
println!( println!("{:?}", self.horizontal.choose(&mut rand::thread_rng()));
"{:?}",
self.horizontal.choose(&mut rand::thread_rng()).unwrap()
);
} }
MonitorType::Vertical => { MonitorType::Vertical => {
println!( println!("{:?}", self.vertical.choose(&mut rand::thread_rng()));
"{:?}",
self.vertical.choose(&mut rand::thread_rng()).unwrap()
);
} }
_ => {} _ => {}
} }

View File

@ -1,8 +1,9 @@
mod config; mod config;
use crate::config::*;
mod enums; mod enums;
use enums::*; use crate::enums::*;
mod files; mod files;
use files::*; use crate::files::*;
fn main() { fn main() {
let mut wallpapers = Wallpapers::new(); let mut wallpapers = Wallpapers::new();