Skip to content

Commit

Permalink
Remove lingering uses of the dbg! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Oct 29, 2022
1 parent c6102b1 commit 48520c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions src/platform/linux/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 48520c6

Please sign in to comment.