diff --git a/src/widgets/battery.rs b/src/widgets/battery.rs index 467aa93..374aa7a 100644 --- a/src/widgets/battery.rs +++ b/src/widgets/battery.rs @@ -28,7 +28,7 @@ fn get_upower_property( .append2( dbus::MessageItem::Str("org.freedesktop.UPower.Device".to_string()), dbus::MessageItem::Str(property.to_string()), - );; + ); con.send_with_reply_and_block(msg, 1000).map_err(|_| { ::std::io::Error::new(::std::io::ErrorKind::Other, "could not send dbus message")