diff --git a/src/context.rs b/src/context.rs index 6982980..5ea0d80 100644 --- a/src/context.rs +++ b/src/context.rs @@ -16,8 +16,8 @@ pub struct Context{ } impl Context{ - pub const fn new(dom:WeakDom)->Context{ - Context{dom} + pub const fn new(dom:WeakDom)->Self{ + Self{dom} } pub fn script_singleton(source:String)->(Context,crate::runner::instance::Script){ let script=InstanceBuilder::new("Script")