Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/cairo-lang-parser/src/colored_printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl ColoredPrinter<'_> {
self.result.push_str(format!("{}", "<m>".red()).as_str());
} else {
self.result
.push_str(set_color(text.long(self.db), node.kind).to_string().as_str());
.push_str(&set_color(text.long(self.db), node.kind).to_string());
}
}
GreenNodeDetails::Node { .. } => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct MockSpecializationContext {}
impl TypeSpecializationContext for MockSpecializationContext {
fn try_get_type_info(&self, id: ConcreteTypeId) -> Option<TypeInfo> {
let long_id = cairo_lang_sierra::ConcreteTypeLongIdParser::new()
.parse(id.to_string().as_str())
.parse(&id.to_string())
.unwrap();
Some(
CoreType::specialize_by_id(self, &long_id.generic_id, &long_id.generic_args)
Expand Down Expand Up @@ -217,7 +217,7 @@ impl std::fmt::Debug for ReducedCompiledInvocation {
/// Currently, only works if all the libfunc's types (both inputs and output) are of size 1.
pub fn compile_libfunc(libfunc: &str, refs: Vec<ReferenceExpression>) -> ReducedCompiledInvocation {
let long_id = cairo_lang_sierra::ConcreteLibfuncLongIdParser::new()
.parse(libfunc.to_string().as_str())
.parse(libfunc)
.unwrap();
let context = MockSpecializationContext {};
let libfunc =
Expand Down
Loading