This commit is contained in:
alice pellerin
2026-03-19 03:07:05 -05:00
parent cb2eeee932
commit 0f11fb9273
2 changed files with 34 additions and 7 deletions
+2 -4
View File
@@ -53,8 +53,7 @@ impl Widget for &Buffer {
}
impl Buffer {
#[allow(mismatched_lifetime_syntaxes)]
fn render_line(&self, address: usize, bytes: &[u8; BYTES_PER_LINE]) -> Line {
fn render_line(&self, address: usize, bytes: &[u8; BYTES_PER_LINE]) -> Line<'static> {
iter::once(address::render_address(address))
.chain(self.render_chunks(address, bytes))
.chain(iter::once(" ".into()))
@@ -62,8 +61,7 @@ impl Buffer {
.collect()
}
#[allow(mismatched_lifetime_syntaxes)]
fn render_partial_line(&self, address: usize, bytes: &[u8]) -> Line {
fn render_partial_line(&self, address: usize, bytes: &[u8]) -> Line<'static> {
iter::once(address::render_address(address))
.chain(self.render_partial_chunks(address, bytes))
.chain(iter::once(" ".into()))