diff --git a/crates/cairo-lang-filesystem/src/ids.rs b/crates/cairo-lang-filesystem/src/ids.rs index a50f3569896..77f8d4e80e3 100644 --- a/crates/cairo-lang-filesystem/src/ids.rs +++ b/crates/cairo-lang-filesystem/src/ids.rs @@ -431,9 +431,6 @@ impl<'db> SmolStrId<'db> { SmolStrId::new(db, content.into()) } - pub fn from_arcstr(db: &'db dyn Database, content: &Arc) -> Self { - SmolStrId::from(db, content.clone()) - } pub fn to_string(&self, db: &dyn Database) -> String { self.long(db).to_string() diff --git a/crates/cairo-lang-semantic/src/expr/compute.rs b/crates/cairo-lang-semantic/src/expr/compute.rs index 5f869e9e7b5..ab2a26a479f 100644 --- a/crates/cairo-lang-semantic/src/expr/compute.rs +++ b/crates/cairo-lang-semantic/src/expr/compute.rs @@ -919,7 +919,7 @@ fn expand_macro_for_statement<'db>( let new_file_long_id = FileLongId::Virtual(VirtualFile { parent: Some(syntax.stable_ptr(ctx.db).untyped().span_in_file(ctx.db)), name: SmolStrId::from(ctx.db, name), - content: SmolStrId::from_arcstr(ctx.db, &content), + content: SmolStrId::from(ctx.db, content.as_ref()), code_mappings: info.mappings.clone(), kind: FileKind::StatementList, original_item_removed: true, diff --git a/crates/cairo-lang-semantic/src/items/macro_call.rs b/crates/cairo-lang-semantic/src/items/macro_call.rs index 26b31b9cc9b..7fd107217dd 100644 --- a/crates/cairo-lang-semantic/src/items/macro_call.rs +++ b/crates/cairo-lang-semantic/src/items/macro_call.rs @@ -147,7 +147,7 @@ fn priv_macro_call_data<'db>( let generated_file_long_id = FileLongId::Virtual(VirtualFile { parent: Some(macro_call_syntax.stable_ptr(db).untyped().span_in_file(db)), name: macro_name, - content: SmolStrId::from_arcstr(db, &expanded_code.text), + content: SmolStrId::from(db, expanded_code.text.as_ref()), code_mappings: expanded_code.code_mappings.clone(), kind: FileKind::Module, original_item_removed: false,