Skip to content

Commit

Permalink
Address some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Jan 16, 2025
1 parent 5cb9f6e commit b259655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ pub struct CaptureFilter {

#[derive(Clone, Debug)]
pub struct CaptureImage {
#[allow(dead_code)]
pub width: u32,
#[allow(dead_code)]
pub height: u32,
pub wl_buffer: SubsurfaceBuffer,
pub transform: wl_output::Transform,
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct CosmicWorkspacesConfig {

// Include `pid` in mime. Want to drag between our surfaces, but not another
// process, if we use Wayland object ids.
#[allow(dead_code)]
static WORKSPACE_MIME: Lazy<String> =
Lazy::new(|| format!("text/x.cosmic-workspace-id-{}", std::process::id()));

Expand Down Expand Up @@ -112,7 +113,7 @@ impl cosmic::iced::clipboard::mime::AllowedMimeTypes for DragToplevel {

impl TryFrom<(Vec<u8>, std::string::String)> for DragToplevel {
type Error = ();
fn try_from((bytes, mime_type): (Vec<u8>, String)) -> Result<Self, ()> {
fn try_from((_bytes, mime_type): (Vec<u8>, String)) -> Result<Self, ()> {
if mime_type == *TOPLEVEL_MIME {
Ok(Self {})
} else {
Expand Down

0 comments on commit b259655

Please sign in to comment.