From c6eacb0936efdd77408b40b1847e1ce00451360a Mon Sep 17 00:00:00 2001 From: Jana Lemke Date: Wed, 24 May 2023 11:14:07 +0200 Subject: [PATCH] Fix clippy lints --- src/main.rs | 2 +- src/rofi.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7d44408..51fb2ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,7 @@ fn main() -> Result<()> { Command::Check(list_options) => Course::check(&list_options)?, Command::Meetings(options) => rofi::select_meeting(&options)?, Command::ShowConfig => println!("{:?}", *CONFIG), - Command::AddMeeting(meeting) => (), + Command::AddMeeting(_meeting) => (), Command::ShowCurrentCourse => println!("{:?}", Course::current()), //Course::current().meetings.push(meeting), }; diff --git a/src/rofi.rs b/src/rofi.rs index ef56100..29bc3df 100644 --- a/src/rofi.rs +++ b/src/rofi.rs @@ -36,7 +36,7 @@ pub fn select_meeting(options: &ListOptions) -> Result<()> { .collect(); let element = Rofi::new(&meeting_names).run_index()?; let mut clip = Command::new("xclip") - .args(&["-sel", "clip"]) + .args(["-sel", "clip"]) .stdin(Stdio::piped()) .spawn() .expect("Could not spawn xclip process");