diff --git a/src/properties.rs b/src/properties.rs index 17c8ea32..7db1e508 100644 --- a/src/properties.rs +++ b/src/properties.rs @@ -120,7 +120,7 @@ impl WmClass { .value .iter() .position(|&v| v == 0) - .unwrap_or_else(|| reply.value.len()); + .unwrap_or(reply.value.len()); Ok(WmClass(reply, offset)) }