Skip to content

Commit

Permalink
Merge pull request #1416 from h3poteto/fix/warning
Browse files Browse the repository at this point in the history
Clean up warnings
  • Loading branch information
h3poteto authored Mar 29, 2024
2 parents 2bfdced + 0dc1260 commit ba522be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ async fn init_instruction(
}

#[tauri::command]
#[allow(unused_variables)]
async fn switch_devtools(app_handle: AppHandle) -> () {
#[cfg(any(feature = "devtools", debug_assertions))]
{
Expand Down Expand Up @@ -576,6 +577,7 @@ fn init_logger(logfile_path: std::path::PathBuf) {
},
Err(_) => simplelog::LevelFilter::Info,
};
#[allow(unused_mut)]
let mut logger: Vec<Box<dyn simplelog::SharedLogger>> = vec![simplelog::WriteLogger::new(
log_level,
simplelog::ConfigBuilder::new()
Expand Down Expand Up @@ -606,6 +608,8 @@ fn init_logger(logfile_path: std::path::PathBuf) {

fn main() -> Result<(), Box<dyn std::error::Error>> {
use tauri::async_runtime::block_on;
#[allow(unused_assignments)]
#[allow(unused_mut)]
let mut base_dir: &str = "fedistar";
const DATABASE_FILE: &str = "fedistar.db";
const LOGFILE_PATH: &str = "fedistar.log";
Expand Down

0 comments on commit ba522be

Please sign in to comment.