diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-05 20:40:11 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-05 20:40:11 +0300 |
| commit | cb5d97f600c7dc5bb31525c5cd664c1377145d87 (patch) | |
| tree | 91a875511c18492d5ff7e2944c715f7f1daf5d82 /src | |
| parent | 608ab7d8b175167f072e09661b1819fc66369a15 (diff) | |
| download | niri-cb5d97f600c7dc5bb31525c5cd664c1377145d87.tar.gz niri-cb5d97f600c7dc5bb31525c5cd664c1377145d87.tar.bz2 niri-cb5d97f600c7dc5bb31525c5cd664c1377145d87.zip | |
Fix new Clippy warning
This was stabilized in 1.76 so we can use it now.
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/tty.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index b4c892a8..41e067a9 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -1949,14 +1949,13 @@ impl GammaProps { property::Value::Blob(blob).into(), ) .context("error setting GAMMA_LUT") - .map_err(|err| { + .inspect_err(|_| { if blob != 0 { // Destroy the blob we just allocated. if let Err(err) = device.destroy_property_blob(blob) { warn!("error destroying GAMMA_LUT property blob: {err:?}"); } } - err })?; } |
