From 48520c6e9cbfcdd7080e1a6100d4dfba5d38d338 Mon Sep 17 00:00:00 2001 From: ComplexSpaces Date: Sat, 29 Oct 2022 12:25:01 -0500 Subject: [PATCH] Remove lingering uses of the dbg! macro --- .github/workflows/test.yml | 8 ++++---- src/platform/linux/wayland.rs | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 030d450..90911a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,25 +40,25 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --verbose --no-default-features -- -D warnings + args: --verbose --no-default-features -- -D warnings -D clippy::dbg_macro - name: Run `cargo clippy` with `image-data` feature uses: actions-rs/cargo@v1 with: command: clippy - args: --verbose --no-default-features --features image-data -- -D warnings + args: --verbose --no-default-features --features image-data -- -D warnings -D clippy::dbg_macro - name: Run `cargo clippy` with `wayland-data-control` feature uses: actions-rs/cargo@v1 with: command: clippy - args: --verbose --no-default-features --features wayland-data-control -- -D warnings + args: --verbose --no-default-features --features wayland-data-control -- -D warnings -D clippy::dbg_macro - name: Run `cargo clippy` with all features uses: actions-rs/cargo@v1 with: command: clippy - args: --verbose --all-features -- -D warnings + args: --verbose --all-features -- -D warnings -D clippy::dbg_macro test: needs: clippy diff --git a/src/platform/linux/wayland.rs b/src/platform/linux/wayland.rs index d88a0fa..955a736 100644 --- a/src/platform/linux/wayland.rs +++ b/src/platform/linux/wayland.rs @@ -136,15 +136,11 @@ impl Clipboard { Ok((mut pipe, _mime_type)) => { let mut buffer = vec![]; pipe.read_to_end(&mut buffer).map_err(into_unknown)?; - dbg!(&buffer); let image = image::io::Reader::new(Cursor::new(buffer)) .with_guessed_format() .map_err(|_| Error::ConversionFailure)? .decode() - .map_err(|e| { - dbg!(e); - Error::ConversionFailure - })?; + .map_err(|_| Error::ConversionFailure)?; let image = image.into_rgba8(); Ok(ImageData {