format: format code
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
use crate::app::config::PakeConfig;
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
use tauri::{App, AppHandle, Config, Manager, WebviewWindow};
|
||||
|
||||
use tauri::{AppHandle, Config, Manager, WebviewWindow};
|
||||
|
||||
pub fn get_pake_config() -> (PakeConfig, Config) {
|
||||
#[cfg(feature = "cli-build")]
|
||||
@@ -24,10 +23,12 @@ pub fn get_pake_config() -> (PakeConfig, Config) {
|
||||
(pake_config, tauri_config)
|
||||
}
|
||||
|
||||
pub fn get_data_dir(app: &AppHandle, _tauri_config: Config, ) -> PathBuf {
|
||||
pub fn get_data_dir(app: &AppHandle, _tauri_config: Config) -> PathBuf {
|
||||
{
|
||||
let package_name = _tauri_config.product_name.unwrap();
|
||||
let data_dir = app.path().config_dir()
|
||||
let data_dir = app
|
||||
.path()
|
||||
.config_dir()
|
||||
.expect("Failed to get data dirname")
|
||||
.join(package_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user