aboutsummaryrefslogtreecommitdiff
path: root/src/protected_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/protected_mode')
-rw-r--r--src/protected_mode/display.rs2
1 files changed, 1 insertions, 1 deletions
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