forge
Explore
Log in

Don't you dare go Hollow

Fix new Clippy warning

Browse files at this commit

cb5d97f600c7dc5bb31525c5cd664c1377145d87Ivan MolodetskikhParent: 608ab7d
This was stabilized in 1.76 so we can use it now.
src/backend/tty.rsmodified+1 -2
@@ -1949,14 +1949,13 @@ impl GammaProps {
19491949 property::Value::Blob(blob).into(),
19501950 )
19511951 .context("error setting GAMMA_LUT")
1952- .map_err(|err| {
1952+ .inspect_err(|_| {
19531953 if blob != 0 {
19541954 // Destroy the blob we just allocated.
19551955 if let Err(err) = device.destroy_property_blob(blob) {
19561956 warn!("error destroying GAMMA_LUT property blob: {err:?}");
19571957 }
19581958 }
1959- err
19601959 })?;
19611960 }
19621961