Skip to content

Commit fcc9b88

Browse files
author
deeleeramone
committed
run cargo fmt
1 parent 0390468 commit fcc9b88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

desktop/src-tauri/src/utils/autostart/windows_autostart.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ pub fn enable_autostart(app_handle: &AppHandle) -> Result<(), String> {
6666
);
6767

6868
if SUCCEEDED(hr) && !shell_link.is_null() {
69-
7069
// Set the path to the executable
7170
let wide_path: Vec<u16> = executable_path
7271
.to_str()
@@ -87,7 +86,9 @@ pub fn enable_autostart(app_handle: &AppHandle) -> Result<(), String> {
8786
if !SUCCEEDED(hr_query) {
8887
(*shell_link).Release();
8988
CoUninitialize();
90-
return Err(format!("Failed to get IPersistFile interface: {hr_query:#x}"));
89+
return Err(format!(
90+
"Failed to get IPersistFile interface: {hr_query:#x}"
91+
));
9192
}
9293

9394
if !persist_file.is_null() {

0 commit comments

Comments
 (0)