Skip to content

Commit

Permalink
fix: run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Jun 12, 2024
1 parent c941114 commit 4b88121
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions crates/dojo-lang/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -315,7 +314,12 @@ impl DojoContract {
param_list: ast::ParamList,
fn_diagnostic_item: ids::SyntaxStablePtrId,
) -> (String, bool) {
self_param::check_self_parameter(db, &param_list, fn_diagnostic_item, &mut self.diagnostics);
self_param::check_self_parameter(
db,
&param_list,
fn_diagnostic_item,
&mut self.diagnostics,
);

let world_injection = world_param::parse_world_injection(
db,
Expand Down
2 changes: 1 addition & 1 deletion crates/dojo-lang/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PluginDiagnostic>,
Expand Down

0 comments on commit 4b88121

Please sign in to comment.