Address some warnings
This commit is contained in:
parent
5cb9f6eb09
commit
b259655839
2 changed files with 4 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ pub struct CaptureFilter {
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct CaptureImage {
|
pub struct CaptureImage {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub width: u32,
|
pub width: u32,
|
||||||
|
#[allow(dead_code)]
|
||||||
pub height: u32,
|
pub height: u32,
|
||||||
pub wl_buffer: SubsurfaceBuffer,
|
pub wl_buffer: SubsurfaceBuffer,
|
||||||
pub transform: wl_output::Transform,
|
pub transform: wl_output::Transform,
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ struct CosmicWorkspacesConfig {
|
||||||
|
|
||||||
// Include `pid` in mime. Want to drag between our surfaces, but not another
|
// Include `pid` in mime. Want to drag between our surfaces, but not another
|
||||||
// process, if we use Wayland object ids.
|
// process, if we use Wayland object ids.
|
||||||
|
#[allow(dead_code)]
|
||||||
static WORKSPACE_MIME: Lazy<String> =
|
static WORKSPACE_MIME: Lazy<String> =
|
||||||
Lazy::new(|| format!("text/x.cosmic-workspace-id-{}", std::process::id()));
|
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 {
|
impl TryFrom<(Vec<u8>, std::string::String)> for DragToplevel {
|
||||||
type Error = ();
|
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 {
|
if mime_type == *TOPLEVEL_MIME {
|
||||||
Ok(Self {})
|
Ok(Self {})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue