Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More safe dumping #322

Open
wants to merge 2 commits into
base: oxidize
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ macro_rules! abort(
($($arg:tt)*) => {{
use std::io::Write;
let v = format!($($arg)*);
bridge::error_buf = v.clone();
unsafe { bridge::error_buf = v.clone(); }
panic!(v);
}};
);
Expand Down
2 changes: 1 addition & 1 deletion engine/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ pub(crate) enum AssignFontInt {
}
impl From<i32> for AssignFontInt {
fn from(n: i32) -> Self {
Self::n(n).expect(&format!("incorrect assign font int = {}", n))
Self::n(n).unwrap_or_else(|| panic!("incorrect assign font int = {}", n))
}
}
/// args to Cmd::LastItem -- heavily overloaded by (X)eTeX for extensions
Expand Down
Loading