Skip to content

Commit 37602d4

Browse files
Chore: Address clippy comments.
1 parent 156a10b commit 37602d4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

compiler/src/modules/vm/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ impl BigInt {
425425
let mut b = itoa::Buffer::new();
426426
s.push_str(b.format(g));
427427
} else {
428-
let n = { let mut b = itoa::Buffer::new(); b.format(g).to_string() };
428+
let n = { let mut b = itoa::Buffer::new(); alloc::string::String::from(b.format(g)) };
429429
for _ in 0..9usize.saturating_sub(n.len()) { s.push('0'); }
430430
s.push_str(&n);
431431
}

compiler/src/wasm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mod runtime {
33
use lol_alloc::LeakingPageAllocator;
44
use crate::modules::{lexer::lexer, parser::Parser, vm::{VM, Limits, VmErr}};
55
use alloc::string::String;
6+
use crate::s;
67

78
#[global_allocator]
89
static A: LeakingPageAllocator = LeakingPageAllocator;

0 commit comments

Comments
 (0)