summaryrefslogtreecommitdiffstats
path: root/src/bin/mpris-next.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/mpris-next.rs')
-rw-r--r--src/bin/mpris-next.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bin/mpris-next.rs b/src/bin/mpris-next.rs
index 2e3fd95..bdd8538 100644
--- a/src/bin/mpris-next.rs
+++ b/src/bin/mpris-next.rs
@@ -10,9 +10,7 @@ use zbus::Connection;
#[tokio::main]
async fn main() -> Result<(), main_error::MainError> {
- i3blocks::run::<Next>(Default::default())
- .await
- .map_err(Into::into)
+ i3blocks::run::<Next>().await.map_err(Into::into)
}
pub struct Next;
@@ -42,7 +40,7 @@ impl Update for Next {
async fn update(value: Self::Value, block: Arc<Mutex<Block>>) -> Result<bool, Error> {
let mut block = block.lock().await;
- block.full_text = value.then_some(" 󰒭 ".into()).unwrap_or_default();
+ block.full_text = value.then_some(" 󰒭 ".into()).unwrap_or_default();
Ok(true)
}
}