Skip to content

Commit 85dd4a3

Browse files
committed
macos: fix lints
1 parent fbd294d commit 85dd4a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macos.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub(super) fn open_browser_internal(
8585
log::trace!("about to start browser: {} for {}", &browser, &target);
8686
let mut launched_app: CFURLRef = std::ptr::null_mut();
8787
let status = unsafe { LSOpenFromURLSpec(&spec, &mut launched_app) };
88-
log::trace!("received status: {}", status);
88+
log::trace!("received status: {status}");
8989
if status == 0 {
9090
Ok(())
9191
} else {
@@ -137,7 +137,7 @@ impl From<OSStatus> for LSError {
137137
impl std::fmt::Display for LSError {
138138
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
139139
match self {
140-
Self::Unknown(code) => write!(f, "ls_error: code {}", code),
140+
Self::Unknown(code) => write!(f, "ls_error: code {code}"),
141141
Self::ApplicationNotFound => f.write_str("ls_error: application not found"),
142142
Self::NoLaunchPermission => f.write_str("ls_error: no launch permission"),
143143
}

0 commit comments

Comments
 (0)