diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d7ecbb5..12c5913 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,6 +18,6 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build - run: cargo +nightly build --verbose + run: cargo build --verbose - name: Run tests - run: cargo +nightly test --verbose + run: cargo test --verbose diff --git a/src/main.rs b/src/main.rs index 02d1a16..5e14e18 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,6 @@ // TODO(#3): Define and Write documentation for the CMBR Standard. // TODO(#6): Seperate the cli and libcmbr -#![feature( - panic_payload_as_str, - error_generic_member_access, - stmt_expr_attributes -)] - mod eval_args; mod pgn; mod tests; @@ -117,15 +111,15 @@ fn main() { panic::set_hook(Box::new(|panic_info| { if let Some(location) = panic_info.location() { println!( - "panic occurred in file '{}' at line {}. {}", + "panic occurred in file '{}' at line {}. {:?}", location.file(), location.line(), - panic_info.payload_as_str().unwrap() + panic_info.payload() ); } else { println!( - "panic occurred but can't get location information...: {}", - panic_info.payload_as_str().unwrap() + "panic occurred but can't get location information...: {:?}", + panic_info.payload() ); } })); diff --git a/src/pgn/mod.rs b/src/pgn/mod.rs index 5bd442b..cdc8f09 100644 --- a/src/pgn/mod.rs +++ b/src/pgn/mod.rs @@ -169,7 +169,6 @@ pub fn parse_pgn(input_filename: &str) -> Result, Box