Address some warnings

This commit is contained in:
Ian Douglas Scott 2025-01-16 10:19:58 -08:00
parent 5cb9f6eb09
commit b259655839
2 changed files with 4 additions and 1 deletions

View file

@ -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,

View file

@ -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()));
@ -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 {