Skip to content

Commit

Permalink
don't expose too much
Browse files Browse the repository at this point in the history
  • Loading branch information
WindSoilder committed Oct 22, 2023
1 parent d04fcc8 commit ebaa08d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,7 @@ impl Frame {
false
}

pub fn print_source_if_avail(
&self,
mut out: impl WriteColor,
s: &BacktracePrinter,
) -> IOResult {
fn print_source_if_avail(&self, mut out: impl WriteColor, s: &BacktracePrinter) -> IOResult {
let (lineno, filename) = match (self.lineno, self.filename.as_ref()) {
(Some(a), Some(b)) => (a, b),
// Without a line number and file name, we can't sensibly proceed.
Expand Down

0 comments on commit ebaa08d

Please sign in to comment.