Upgraded to Rust v1.99.0 (#1032)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-09 18:33:48 +02:00
1 parent f0bca520df
commit bdf828fa4f
3 files changed
+5 -10

No files matched your search

+2 -8
View File
@@ -1,5 +1,5 @@
use std::collections::BTreeMap;
use std::env::{current_dir, temp_dir};
use std::env::{current_dir, home_dir, temp_dir};
use std::error::Error;
use std::fmt::Debug;
use std::fs::{create_dir_all, OpenOptions};
@@ -130,18 +130,12 @@ fn get_startup_log_path(bundle_identifier: &str) -> (PathBuf, Option<String>) {
}
(get_non_flatpak_startup_log_path(
home_directory(),
home_dir(),
current_dir().ok(),
temp_dir(),
), None)
}
// Note: Rust plans to remove the deprecation flag for std::env::home_dir() in Rust 1.86.0.
#[allow(deprecated)]
fn home_directory() -> Option<PathBuf> {
std::env::home_dir()
}
fn get_non_flatpak_startup_log_path(
home_directory: Option<PathBuf>,
working_directory: Option<PathBuf>,