summaryrefslogtreecommitdiff
path: root/crates/nu-protocol/src/debugger/profiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/nu-protocol/src/debugger/profiler.rs')
-rw-r--r--crates/nu-protocol/src/debugger/profiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/nu-protocol/src/debugger/profiler.rs b/crates/nu-protocol/src/debugger/profiler.rs
index ea81a1b81..bffadfe5e 100644
--- a/crates/nu-protocol/src/debugger/profiler.rs
+++ b/crates/nu-protocol/src/debugger/profiler.rs
@@ -259,7 +259,7 @@ impl Debugger for Profiler {
.or_else(|| {
instruction
.output_register()
- .map(|register| Ok(&registers[register.0 as usize]))
+ .map(|register| Ok(&registers[register.get() as usize]))
})
.map(|result| format_result(&result, span))
})