Skip to content

Commit ba0da32

Browse files
Update vm/src/stdlib/posix.rs
Thanks Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
1 parent 11cd1f5 commit ba0da32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/stdlib/posix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ pub mod module {
18881888
let pathname = vm.ctx.new_dict();
18891889
for variant in PathconfVar::VARIANTS {
18901890
// get the name of variant as a string to use as the dictionary key
1891-
let key: PyObjectRef = vm.ctx.new_str(variant.to_string()).into();
1891+
let key = vm.ctx.new_str(variant.to_string());
18921892
// get the enum from the string and convert it to an integer for the dictionary value
18931893
let value: PyObjectRef = vm
18941894
.ctx

0 commit comments

Comments
 (0)