Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Sep 12, 2024
1 parent 8d13b0b commit 3f2de26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/aiken-lang/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ impl<'comments> Formatter<'comments> {
ByteArrayFormatPreference::Utf8String => nil()
.append("\"")
.append(Document::String(escape(
&String::from_utf8(bytes.to_vec()).unwrap(),
core::str::from_utf8(bytes).unwrap(),
)))
.append("\""),
}
Expand Down
4 changes: 2 additions & 2 deletions crates/aiken-lang/src/gen_uplc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2040,8 +2040,8 @@ impl<'a> CodeGenerator<'a> {
} else {
let list_name = format!("__list_span_{}_{}", location.start, location.end);
let item_name = format!("__item_span_{}_{}", location.start, location.end);
let list = format!("__list");
let curried_func = format!("__curried_expect_on_list");
let list = "__list".to_string();
let curried_func = "__curried_expect_on_list".to_string();

let list_name_interned = introduce_name(&mut self.interner, &list_name);
let item_name_interned = introduce_name(&mut self.interner, &item_name);
Expand Down
2 changes: 1 addition & 1 deletion crates/aiken-lang/src/gen_uplc/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1818,5 +1818,5 @@ pub fn pop_pattern(interner: &mut AirInterner, pattern: &TypedPattern) {
pub fn introduce_name(interner: &mut AirInterner, name: &String) -> String {
interner.intern(name.clone());

interner.lookup_interned(&name)
interner.lookup_interned(name)
}

0 comments on commit 3f2de26

Please sign in to comment.