diff --git a/interpreter/src/lib.rs b/interpreter/src/lib.rs index 3117ef9..7c9f462 100644 --- a/interpreter/src/lib.rs +++ b/interpreter/src/lib.rs @@ -24,4 +24,5 @@ impl Interpreter { } #[derive(Debug, thiserror::Error)] +#[allow(dead_code)] enum InterpreterError {} diff --git a/lexer/src/lib.rs b/lexer/src/lib.rs index 8f1748e..cc8de2d 100644 --- a/lexer/src/lib.rs +++ b/lexer/src/lib.rs @@ -3,7 +3,6 @@ // For the full copyright and license information, please view the LICENSE // files that was distributed with this source code. - #[cfg(test)] mod tests; diff --git a/lexer/src/tests.rs b/lexer/src/tests.rs new file mode 100644 index 0000000..b36f74b --- /dev/null +++ b/lexer/src/tests.rs @@ -0,0 +1 @@ +// Placeholder: real tests to be added. diff --git a/src/utils.rs b/src/utils.rs index 5735394..cada99c 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -10,7 +10,7 @@ use std::process::exit; use color_eyre::config::HookBuilder; use rustix::process::{EXIT_FAILURE, EXIT_SUCCESS}; use tracing_error::ErrorLayer; -use tracing_subscriber::{EnvFilter, prelude::*}; +use tracing_subscriber::prelude::*; type ExitCode = i32; @@ -60,6 +60,7 @@ pub fn ensure_consistent_panic(f: impl UnwindSafe + FnOnce() -> T) -> T { } /// Exits with a custom exit code or libc's codes, as per POSIX. +#[allow(dead_code)] pub fn exit_with(res: Result>, impl Display + Debug>) -> ! { let code = match res { Ok(Some(x)) => x.into(),