all: replace debug_fn with fmt::from_fn
This commit is contained in:
parent
0932ad11b5
commit
b3c46bf52d
11 changed files with 41 additions and 70 deletions
|
|
@ -2,11 +2,11 @@ use {
|
|||
crate::{
|
||||
cli::{GlobalArgs, IdleArgs, duration::parse_duration},
|
||||
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
||||
utils::{debug_fn::debug_fn, stack::Stack},
|
||||
utils::stack::Stack,
|
||||
wire::{JayIdleId, WlSurfaceId, jay_compositor, jay_idle},
|
||||
},
|
||||
clap::{Args, Subcommand},
|
||||
std::{cell::Cell, rc::Rc},
|
||||
std::{cell::Cell, fmt, rc::Rc},
|
||||
};
|
||||
|
||||
#[derive(Subcommand, Debug, Default)]
|
||||
|
|
@ -105,7 +105,7 @@ impl Idle {
|
|||
});
|
||||
tc.round_trip().await;
|
||||
let interval = |iv: u64| {
|
||||
debug_fn(move |f| {
|
||||
fmt::from_fn(move |f| {
|
||||
let minutes = iv / 60;
|
||||
let seconds = iv % 60;
|
||||
if minutes == 0 && seconds == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue