Chore: Inline format args for ease of reading
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
This commit is contained in:
parent
4613eb26cb
commit
3d6b9637c3
13 changed files with 25 additions and 30 deletions
|
|
@ -157,7 +157,7 @@ where
|
|||
)
|
||||
.with_visible(false);
|
||||
|
||||
log::debug!("Window builder: {:#?}", builder);
|
||||
log::debug!("Window builder: {builder:#?}");
|
||||
|
||||
let window = builder
|
||||
.build(&event_loop)
|
||||
|
|
@ -174,7 +174,7 @@ where
|
|||
let body = document.body().unwrap();
|
||||
|
||||
let target = target.and_then(|target| {
|
||||
body.query_selector(&format!("#{}", target))
|
||||
body.query_selector(&format!("#{target}"))
|
||||
.ok()
|
||||
.unwrap_or(None)
|
||||
});
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ impl Clipboard {
|
|||
State::Connected(clipboard) => match clipboard.write(contents) {
|
||||
Ok(()) => {}
|
||||
Err(error) => {
|
||||
log::warn!("error writing to clipboard: {}", error)
|
||||
log::warn!("error writing to clipboard: {error}")
|
||||
}
|
||||
},
|
||||
State::Unavailable => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue