Skip to content

Commit

Permalink
fix: clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Sep 21, 2024
1 parent 64a40d7 commit e1010e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/functionality/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn after_build(window: &tauri::WebviewWindow) {
#[cfg(target_os = "windows")]
{
use std::fs;
use std::path::PathBuf;
use std::path::PathBuf;

// This should be the last extension loaded, the others are loaded early on
let main_ext_res_path = window
Expand All @@ -130,7 +130,7 @@ pub fn after_build(window: &tauri::WebviewWindow) {
}

add_extension(window, main_ext_path.clone());

// Refresh the page to ensure extensions are loaded
window.eval("window.location.reload();").unwrap_or_default();
}
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/processors/css_preprocess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub fn localize_imports(win: tauri::WebviewWindow, css: String, name: String) ->
#[tauri::command]
pub fn localize_imports(_win: tauri::WebviewWindow, css: String, _name: String) -> String {
log!("Windows no longer requires CSS imports to be localized");
return css
css
}

#[cfg(not(target_os = "windows"))]
Expand Down Expand Up @@ -294,4 +294,4 @@ pub fn localize_images(win: tauri::WebviewWindow, css: String) -> String {
}

new_css
}
}

0 comments on commit e1010e5

Please sign in to comment.