From 6b66009c44685faeab2b24e72c82ebcd518b05f5 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 3 Oct 2024 16:26:54 -0700 Subject: [PATCH] self --- src/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.rs b/src/context.rs index 1d9017b..91f3a69 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 dom=WeakDom::new(