Skip to content

Commit

Permalink
fix up tail call lifetime changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jan 14, 2025
1 parent 587e171 commit 3c31529
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flatten/src/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,18 @@ impl<'sval> LabelBuf<'sval> {
LabelBuf::Text(text) => f(&Label::new_computed(text.as_str())),
LabelBuf::I128(v) => {
let mut buf = itoa::Buffer::new();
f(&Label::new_computed(buf.format(*v)))
let r= f(&Label::new_computed(buf.format(*v)));
r
}
LabelBuf::U128(v) => {
let mut buf = itoa::Buffer::new();
f(&Label::new_computed(buf.format(*v)))
let r = f(&Label::new_computed(buf.format(*v)));
r
}
LabelBuf::F64(v) => {
let mut buf = ryu::Buffer::new();
f(&Label::new_computed(buf.format(*v)))
let r =f(&Label::new_computed(buf.format(*v)));
r
}
}
}
Expand Down

0 comments on commit 3c31529

Please sign in to comment.