diff --git a/crates/dojo-lang/src/contract.rs b/crates/dojo-lang/src/contract.rs index a6c780a3e8..2bd17fbc8c 100644 --- a/crates/dojo-lang/src/contract.rs +++ b/crates/dojo-lang/src/contract.rs @@ -11,9 +11,8 @@ use cairo_lang_utils::unordered_hash_map::UnorderedHashMap; use dojo_types::system::Dependency; use crate::plugin::{DojoAuxData, SystemAuxData}; -use crate::syntax::utils as syntax_utils; use crate::syntax::world_param::{self, WorldParamInjectionKind}; -use crate::syntax::self_param; +use crate::syntax::{self_param, utils as syntax_utils}; const DOJO_INIT_FN: &str = "dojo_init"; @@ -315,7 +314,12 @@ impl DojoContract { param_list: ast::ParamList, fn_diagnostic_item: ids::SyntaxStablePtrId, ) -> (String, bool) { - self_param::check_self_parameter(db, ¶m_list, fn_diagnostic_item, &mut self.diagnostics); + self_param::check_self_parameter( + db, + ¶m_list, + fn_diagnostic_item, + &mut self.diagnostics, + ); let world_injection = world_param::parse_world_injection( db, diff --git a/crates/dojo-lang/src/interface.rs b/crates/dojo-lang/src/interface.rs index b47eb2e2e2..a2aea52647 100644 --- a/crates/dojo-lang/src/interface.rs +++ b/crates/dojo-lang/src/interface.rs @@ -5,8 +5,8 @@ use cairo_lang_syntax::node::db::SyntaxGroup; use cairo_lang_syntax::node::{ast, ids, Terminal, TypedStablePtr, TypedSyntaxNode}; use cairo_lang_utils::unordered_hash_map::UnorderedHashMap; -use crate::syntax::world_param::{self, WorldParamInjectionKind}; use crate::syntax::self_param; +use crate::syntax::world_param::{self, WorldParamInjectionKind}; pub struct DojoInterface { diagnostics: Vec,