diff options
| author | iximeow <me@iximeow.net> | 2026-02-14 18:36:48 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2026-02-14 18:36:48 +0000 |
| commit | 1dbe370cb0a740c42e5688724684e363ed5bd92e (patch) | |
| tree | 22940007c3496942777bf216a0adf89e6d1159ed /src | |
| parent | b7de8016c51f8d48bb3f91eb6d7be191d6b46d55 (diff) | |
fair enough on those warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/long_mode/display.rs | 2 | ||||
| -rw-r--r-- | src/protected_mode/display.rs | 2 | ||||
| -rw-r--r-- | src/real_mode/display.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index b9023ed..f215d07 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -4449,7 +4449,7 @@ mod buffer_sink { /// into. /// /// SAFETY: callers must print at most one instruction into this handle. - unsafe fn write_handle(&mut self) -> yaxpeax_arch::display::InstructionTextSink { + unsafe fn write_handle<'buf>(&'buf mut self) -> yaxpeax_arch::display::InstructionTextSink<'buf> { self.content.clear(); // Safety: `content` was just cleared, so writing begins at the start of the buffer. // `content`is large enough to hold a fully-formatted instruction (see diff --git a/src/protected_mode/display.rs b/src/protected_mode/display.rs index 8124337..46449d1 100644 --- a/src/protected_mode/display.rs +++ b/src/protected_mode/display.rs @@ -2994,7 +2994,7 @@ mod buffer_sink { /// into. /// /// SAFETY: callers must print at most one instruction into this handle. - unsafe fn write_handle(&mut self) -> yaxpeax_arch::display::InstructionTextSink { + unsafe fn write_handle<'buf>(&'buf mut self) -> yaxpeax_arch::display::InstructionTextSink<'buf> { self.content.clear(); // Safety: `content` was just cleared, so writing begins at the start of the buffer. // `content`is large enough to hold a fully-formatted instruction (see diff --git a/src/real_mode/display.rs b/src/real_mode/display.rs index 9607e9d..e686b0a 100644 --- a/src/real_mode/display.rs +++ b/src/real_mode/display.rs @@ -2996,7 +2996,7 @@ mod buffer_sink { /// into. /// /// SAFETY: callers must print at most one instruction into this handle. - unsafe fn write_handle(&mut self) -> yaxpeax_arch::display::InstructionTextSink { + unsafe fn write_handle<'buf>(&'buf mut self) -> yaxpeax_arch::display::InstructionTextSink<'buf> { self.content.clear(); // Safety: `content` was just cleared, so writing begins at the start of the buffer. // `content`is large enough to hold a fully-formatted instruction (see |
