Skip to content

Commit

Permalink
Rename panics module to panic_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Nov 28, 2024
1 parent 2aaddb0 commit a3efce0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub use tokenparser::TokenParser;
pub mod api;
pub mod output;
pub use toktrie;
pub mod panics;
pub mod panic_utils;

mod constraint;
mod tokenizer_json;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions parser/src/tokenparser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
earley::{
grammars_from_json, BiasComputer, DefaultBiasComputer, Parser, ParserError, ParserStats,
},
infoln, warn, Logger,
infoln, panic_utils, warn, Logger,
};
use anyhow::{ensure, Result};
use serde_json::json;
Expand Down Expand Up @@ -48,7 +48,7 @@ impl TokenParser {
limits: ParserLimits,
extra_lexemes: Vec<String>,
) -> Result<Self> {
crate::panics::catch_unwind(AssertUnwindSafe(|| {
panic_utils::catch_unwind(AssertUnwindSafe(|| {
Self::from_llguidance_json_inner(
token_env,
top_grammar,
Expand Down

0 comments on commit a3efce0

Please sign in to comment.