fix clippy

This commit is contained in:
Luke Boswell 2024-08-18 15:22:16 +10:00
parent b0c1d88320
commit e7a90f1ab5
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
2 changed files with 4 additions and 2 deletions

View file

@ -74,7 +74,7 @@ impl Out {
} }
/// Normalise the output for comparison in tests by replacing with a placeholder /// Normalise the output for comparison in tests by replacing with a placeholder
fn normalize_for_tests(input: &String) -> String { fn normalize_for_tests(input: &str) -> String {
// normalise from windows line endings to unix line endings // normalise from windows line endings to unix line endings
let without_clrf = input.replace("\r\n", "\n"); let without_clrf = input.replace("\r\n", "\n");

View file

@ -429,7 +429,8 @@ fn gen_from_mono_module_dev<'a>(
target: Target, target: Target,
preprocessed_host_path: &PrebuiltHost, preprocessed_host_path: &PrebuiltHost,
wasm_dev_stack_bytes: Option<u32>, wasm_dev_stack_bytes: Option<u32>,
backend_mode: AssemblyBackendMode,
#[allow(unused_variables)] backend_mode: AssemblyBackendMode,
) -> GenFromMono<'a> { ) -> GenFromMono<'a> {
match (preprocessed_host_path, target.architecture()) { match (preprocessed_host_path, target.architecture()) {
(PrebuiltHost::Additive(host_path), Architecture::Wasm32) => { (PrebuiltHost::Additive(host_path), Architecture::Wasm32) => {
@ -553,6 +554,7 @@ fn gen_from_mono_module_dev_wasm32<'a>(
) )
} }
#[allow(dead_code)]
fn gen_from_mono_module_dev_assembly<'a>( fn gen_from_mono_module_dev_assembly<'a>(
arena: &'a bumpalo::Bump, arena: &'a bumpalo::Bump,
loaded: MonomorphizedModule<'a>, loaded: MonomorphizedModule<'a>,