Compare commits
No commits in common. "368ac084493e25f660b1f01a3d4072e25a72c114" and "e99cbeec6e45b64c3020f178862bec77c8c0c8e1" have entirely different histories.
368ac08449
...
e99cbeec6e
15
src/files.rs
15
src/files.rs
@ -48,22 +48,13 @@ impl Wallpapers {
|
||||
pub fn random_selection(&self, monitor_type: MonitorType) {
|
||||
match monitor_type {
|
||||
MonitorType::Ultrawide => {
|
||||
println!(
|
||||
"{:?}",
|
||||
self.ultrawide.choose(&mut rand::thread_rng()).unwrap()
|
||||
);
|
||||
println!("{:?}", self.ultrawide.choose(&mut rand::thread_rng()));
|
||||
}
|
||||
MonitorType::Horizontal => {
|
||||
println!(
|
||||
"{:?}",
|
||||
self.horizontal.choose(&mut rand::thread_rng()).unwrap()
|
||||
);
|
||||
println!("{:?}", self.horizontal.choose(&mut rand::thread_rng()));
|
||||
}
|
||||
MonitorType::Vertical => {
|
||||
println!(
|
||||
"{:?}",
|
||||
self.vertical.choose(&mut rand::thread_rng()).unwrap()
|
||||
);
|
||||
println!("{:?}", self.vertical.choose(&mut rand::thread_rng()));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
mod config;
|
||||
use crate::config::*;
|
||||
mod enums;
|
||||
use enums::*;
|
||||
use crate::enums::*;
|
||||
mod files;
|
||||
use files::*;
|
||||
use crate::files::*;
|
||||
|
||||
fn main() {
|
||||
let mut wallpapers = Wallpapers::new();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user