diff --git a/examples/hello_embed.rs b/examples/hello_embed.rs index c8c5a8c54..7db217483 100644 --- a/examples/hello_embed.rs +++ b/examples/hello_embed.rs @@ -1,15 +1,15 @@ -use rustpython_compiler::compile; -use rustpython_vm::{pyobject::PyResult, PySettings, VirtualMachine}; +use rustpython_compiler as compiler; +use rustpython_vm as vm; -fn main() -> PyResult<()> { - let vm = VirtualMachine::new(PySettings::default()); +fn main() -> vm::pyobject::PyResult<()> { + let vm = vm::VirtualMachine::new(vm::PySettings::default()); let scope = vm.new_scope_with_builtins(); let code_obj = vm .compile( r#"print("Hello World!")"#, - compile::Mode::Exec, + compiler::compile::Mode::Exec, "".to_string(), ) .map_err(|err| vm.new_syntax_error(&err))?;