diff options
Diffstat (limited to 'crates/nu-protocol/src/debugger/profiler.rs')
-rw-r--r-- | crates/nu-protocol/src/debugger/profiler.rs | 2 |
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(®isters[register.0 as usize])) + .map(|register| Ok(®isters[register.get() as usize])) }) .map(|result| format_result(&result, span)) }) |