diff --git a/.github/workflows/build_website.yml b/.github/workflows/build_website.yml index fd19f10..311ed79 100644 --- a/.github/workflows/build_website.yml +++ b/.github/workflows/build_website.yml @@ -9,7 +9,8 @@ on: jobs: build: runs-on: ubuntu-latest - + permissions: + contents: write steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/src/app_tray/compositor/cosmic_comp.rs b/src/app_tray/compositor/cosmic_comp.rs index 864d1c4..72af40a 100644 --- a/src/app_tray/compositor/cosmic_comp.rs +++ b/src/app_tray/compositor/cosmic_comp.rs @@ -170,10 +170,10 @@ impl ActivationHandler for WaylandData { fn new_token(&mut self, token: String, data: &Self::RequestData) { let _ = self.tx.unbounded_send(CosmicIncoming::ActivationToken { - token: Some(token), - app_id: data.app_id().map(|x| x.to_owned()), - exec: data.exec.clone(), - gpu_idx: data.gpu_idx, + _token: Some(token), + _app_id: data.app_id().map(|x| x.to_owned()), + _exec: data.exec.clone(), + _gpu_idx: data.gpu_idx, }); } } @@ -359,10 +359,10 @@ fn wayland_handler(tx: UnboundedSender, rx: Channel), Output(OutputUpdate), ActivationToken { - token: Option, - app_id: Option, - exec: String, - gpu_idx: Option, + _token: Option, + _app_id: Option, + _exec: String, + _gpu_idx: Option, }, } @@ -443,6 +443,7 @@ pub enum WaylandRequest { pub enum ToplevelRequest { Activate(ZcosmicToplevelHandleV1), Minimize(ZcosmicToplevelHandleV1), + #[allow(unused)] Quit(ZcosmicToplevelHandleV1), } diff --git a/src/app_tray/compositor/mod.rs b/src/app_tray/compositor/mod.rs index 67ca823..08fc473 100644 --- a/src/app_tray/compositor/mod.rs +++ b/src/app_tray/compositor/mod.rs @@ -78,6 +78,7 @@ pub enum WaylandIncoming { pub enum WaylandOutgoing { Exec(String, String), Toggle(WindowHandle), + #[allow(unused)] Activate(WindowHandle), } diff --git a/src/settings_tray/clock.rs b/src/settings_tray/clock.rs index 1d5cc80..922eca5 100644 --- a/src/settings_tray/clock.rs +++ b/src/settings_tray/clock.rs @@ -60,12 +60,10 @@ impl Clock { let now = Local::now(); let formatted_time = now.format("%I:%M %p").to_string(); let formatted_date = now.format("%Y-%m-%d").to_string(); - println!("Sending {} to main thread", formatted_time); let _ = output .send(ClockMessage::UpdateClock(formatted_time, formatted_date)) .await .unwrap(); - println!("Through sending thing"); // Calculate the duration until the next minute let next_minute = now.with_second(0).unwrap().with_nanosecond(0).unwrap() + chrono::Duration::minutes(1);