diff options
Diffstat (limited to 'oryxc/src/errors.rs')
| -rw-r--r-- | oryxc/src/errors.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/oryxc/src/errors.rs b/oryxc/src/errors.rs index a8350dd..3c00220 100644 --- a/oryxc/src/errors.rs +++ b/oryxc/src/errors.rs @@ -11,13 +11,11 @@ use std::fmt::{ Formatter, }; use std::io::Write; -use std::ops::Deref; use std::path::Path; use std::sync::OnceLock; use std::{ env, io, - process, }; use unicode_width::UnicodeWidthStr; @@ -81,15 +79,6 @@ macro_rules! err { }}; } -pub fn err_at_position<T, S>(filename: T, s: S) -> ! -where - T: Deref<Target = OsStr>, - S: Display, -{ - eprintln!("{}: \x1b[31;1mError:\x1b[0m {}", filename.display(), s); - process::exit(1); -} - #[derive(Debug)] pub struct OryxError { pub span: (usize, usize), |