aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-09-05 20:40:11 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-09-05 20:40:11 +0300
commitcb5d97f600c7dc5bb31525c5cd664c1377145d87 (patch)
tree91a875511c18492d5ff7e2944c715f7f1daf5d82
parent608ab7d8b175167f072e09661b1819fc66369a15 (diff)
downloadniri-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.
-rw-r--r--src/backend/tty.rs3
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
})?;
}