Fix compiler warnings

This commit is contained in:
Ian Douglas Scott 2025-05-15 12:14:48 -07:00 committed by Victoria Brekenfeld
parent 087715aa8f
commit 42c6a3729a
2 changed files with 7 additions and 1 deletions

View file

@ -582,10 +582,12 @@ impl State {
} }
} }
#[allow(deprecated)]
Action::NextOutput => { Action::NextOutput => {
warn!("Skipping deprecated shortcut NextOutput"); warn!("Skipping deprecated shortcut NextOutput");
} }
#[allow(deprecated)]
Action::PreviousOutput => { Action::PreviousOutput => {
warn!("Skipping deprecated shortcut PreviousOutput"); warn!("Skipping deprecated shortcut PreviousOutput");
} }
@ -652,10 +654,12 @@ impl State {
} }
} }
#[allow(deprecated)]
Action::MoveToNextOutput | Action::SendToNextOutput => { Action::MoveToNextOutput | Action::SendToNextOutput => {
warn!("Ignoring deprecated action Move/SendToNextOutput"); warn!("Ignoring deprecated action Move/SendToNextOutput");
} }
#[allow(deprecated)]
Action::MoveToPreviousOutput | Action::SendToPreviousOutput => { Action::MoveToPreviousOutput | Action::SendToPreviousOutput => {
warn!("Ignoring deprecated action Move/SendToPreviousOutput"); warn!("Ignoring deprecated action Move/SendToPreviousOutput");
} }
@ -677,10 +681,12 @@ impl State {
} }
} }
#[allow(deprecated)]
Action::MigrateWorkspaceToNextOutput => { Action::MigrateWorkspaceToNextOutput => {
warn!("Ignoring deprecated action MigrateWorkspaceToNextOutput"); warn!("Ignoring deprecated action MigrateWorkspaceToNextOutput");
} }
#[allow(deprecated)]
Action::MigrateWorkspaceToPreviousOutput => { Action::MigrateWorkspaceToPreviousOutput => {
warn!("Ignoring deprecated action MigrateWorkspaceToPreviousOutput"); warn!("Ignoring deprecated action MigrateWorkspaceToPreviousOutput");
} }

View file

@ -289,7 +289,7 @@ where
&'a self, &'a self,
workspace: &'a WorkspaceHandle, workspace: &'a WorkspaceHandle,
client: &'a ObjectId, client: &'a ObjectId,
) -> impl Iterator<Item = &ExtWorkspaceHandleV1> + 'a { ) -> impl Iterator<Item = &'a ExtWorkspaceHandleV1> + 'a {
self.groups self.groups
.iter() .iter()
.find_map(|g| g.workspaces.iter().find(|w| w.id == workspace.id)) .find_map(|g| g.workspaces.iter().find(|w| w.id == workspace.id))