Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2cc9a60

Browse files
committed
Avoid double borrow in Frame.nth_value.
1 parent676130f commit2cc9a60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎vm/src/frame.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,8 @@ impl Frame {
10941094
}
10951095

10961096
fnnth_value(&self,depth:usize) ->PyObjectRef{
1097-
self.stack.borrow_mut()[self.stack.borrow().len() - depth -1].clone()
1097+
let stack =self.stack.borrow_mut();
1098+
stack[stack.len() - depth -1].clone()
10981099
}
10991100
}
11001101

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp