From 2ea963cb7bf31f63fa7d64e7b6183f0cb73cbcc8 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 13 Sep 2020 18:12:27 +0800 Subject: [PATCH] thanks clippy --- CHANGELOG.md | 4 ++++ examples/shared/smol.rs | 4 +++- examples/units.rs | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 861ba2c..d282c14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v10.0.1 + +* upgrade dependencies to latest versions + ## v10.0.0 ### Breaking diff --git a/examples/shared/smol.rs b/examples/shared/smol.rs index cf6bbac..b99dd87 100644 --- a/examples/shared/smol.rs +++ b/examples/shared/smol.rs @@ -28,7 +28,9 @@ impl Task { static EXECUTOR: Lazy = Lazy::new(|| { thread::spawn(|| { let (p, u) = parking::pair(); - let ticker = EXECUTOR.ticker(move || drop(u.unpark())); + let ticker = EXECUTOR.ticker(move || { + u.unpark(); + }); loop { if let Ok(false) = catch_unwind(|| ticker.tick()) { diff --git a/examples/units.rs b/examples/units.rs index cd9b79f..d6e3003 100644 --- a/examples/units.rs +++ b/examples/units.rs @@ -14,7 +14,7 @@ fn main() -> Result { let args: args::Options = argh::from_env(); let root = Tree::default(); - let renderer = args.renderer.clone().unwrap_or("line".into()); + let renderer = args.renderer.clone().unwrap_or_else(|| "line".into()); let handle = shared::launch_ambient_gui(root.clone(), &renderer, args, true).unwrap(); let work = async move { let mut unblock = blocking::Unblock::new(());