Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 13, 2020
1 parent 01db9af commit 2ea963c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v10.0.1

* upgrade dependencies to latest versions

## v10.0.0

### Breaking
Expand Down
4 changes: 3 additions & 1 deletion examples/shared/smol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ impl<T> Task<T> {
static EXECUTOR: Lazy<Executor> = 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()) {
Expand Down
2 changes: 1 addition & 1 deletion examples/units.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
Expand Down

0 comments on commit 2ea963c

Please sign in to comment.