diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da3296d..bdd7685 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,4 +17,4 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build - run: cargo build --verbose + run: cargo build --target x86_64-pc-windows-msvc --target=i686-pc-windows-msvc --verbose diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index a9f2284..0000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,3 +0,0 @@ -[toolchain] -channel = "nightly" -targets = [ "i686-pc-windows-msvc", "x86_64-pc-windows-msvc" ] \ No newline at end of file diff --git a/soulmemory-rs/src/lib.rs b/soulmemory-rs/src/lib.rs index 665d1c7..7acdf9a 100644 --- a/soulmemory-rs/src/lib.rs +++ b/soulmemory-rs/src/lib.rs @@ -14,8 +14,6 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#![feature(fs_try_exists)] - mod util; pub mod app; pub mod games; diff --git a/soulmemory-rs/src/util/log.rs b/soulmemory-rs/src/util/log.rs index 5bcf666..6b3fd35 100644 --- a/soulmemory-rs/src/util/log.rs +++ b/soulmemory-rs/src/util/log.rs @@ -25,17 +25,11 @@ use log4rs::config::{Appender, Config, Logger, Root}; pub fn init_log(level: LevelFilter) { let logfile_path = r#"C:/temp/soulmemory.log"#; + let path = std::path::Path::new(logfile_path); - match fs::try_exists(logfile_path) + if path.exists() { - Ok(exists) => - { - if exists - { - fs::remove_file(logfile_path).unwrap(); - } - } - Err(_) => {} + fs::remove_file(logfile_path).unwrap(); } //Setup logger