X Tutup
Skip to content

Commit da95cca

Browse files
committed
Use Self
1 parent 75ac4c4 commit da95cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/stdlib/ast/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Node for ConstantLiteral {
140140
match self {
141141
Self::None => vm.ctx.none(),
142142
Self::Bool(value) => vm.ctx.new_bool(value).to_pyobject(vm),
143-
ConstantLiteral::Str { value, .. } => vm.ctx.new_str(value).to_pyobject(vm),
143+
Self::Str { value, .. } => vm.ctx.new_str(value).to_pyobject(vm),
144144
Self::Bytes(value) => vm.ctx.new_bytes(value.into()).to_pyobject(vm),
145145
Self::Int(value) => value.ast_to_object(vm, source_code),
146146
Self::Tuple(value) => {

0 commit comments

Comments
 (0)
X Tutup