Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vm/src/builtins/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl ConstantBag for PyObjBag<'_> {
ctx.new_tuple(elements).into()
}
bytecode::BorrowedConstant::None => ctx.none(),
bytecode::BorrowedConstant::Ellipsis => ctx.ellipsis(),
bytecode::BorrowedConstant::Ellipsis => ctx.ellipsis.clone().into(),
};
Literal(obj)
}
Expand Down
2 changes: 1 addition & 1 deletion vm/src/stdlib/ast/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Node for ConstantLiteral {
.ctx
.new_complex(num_complex::Complex::new(real, imag))
.into_pyobject(vm),
Self::Ellipsis => vm.ctx.ellipsis(),
Self::Ellipsis => vm.ctx.ellipsis.clone().into(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion vm/src/stdlib/marshal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ mod decl {
}

fn make_ellipsis(&self) -> Self::Value {
self.0.ctx.ellipsis()
self.0.ctx.ellipsis.clone().into()
}

fn make_float(&self, value: f64) -> Self::Value {
Expand Down
5 changes: 0 additions & 5 deletions vm/src/vm/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,6 @@ impl Context {
self.none.clone().into()
}

#[inline(always)]
pub fn ellipsis(&self) -> PyObjectRef {
self.ellipsis.clone().into()
}

#[inline(always)]
pub fn not_implemented(&self) -> PyObjectRef {
self.not_implemented.clone().into()
Expand Down
Loading