Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Switched to stable
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankvdStam committed Jul 12, 2024
1 parent 770e164 commit 497edb3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions rust-toolchain.toml

This file was deleted.

2 changes: 0 additions & 2 deletions soulmemory-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

#![feature(fs_try_exists)]

mod util;
pub mod app;
pub mod games;
Expand Down
12 changes: 3 additions & 9 deletions soulmemory-rs/src/util/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 497edb3

Please sign in to comment.