mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-14 17:31:20 +00:00
Use &’static str for backend
This commit is contained in:
@ -110,7 +110,7 @@ mod tests {
|
||||
baseline: true,
|
||||
msm: msm,
|
||||
base: instance.module.runnable_module.get_code().unwrap().as_ptr() as usize,
|
||||
backend: MCG::backend_id().to_string(),
|
||||
backend: MCG::backend_id(),
|
||||
runnable_module: instance.module.runnable_module.clone(),
|
||||
});
|
||||
true
|
||||
@ -152,7 +152,7 @@ mod tests {
|
||||
baseline: true,
|
||||
msm: msm,
|
||||
base: instance.module.runnable_module.get_code().unwrap().as_ptr() as usize,
|
||||
backend: MCG::backend_id().to_string(),
|
||||
backend: MCG::backend_id(),
|
||||
runnable_module: instance.module.runnable_module.clone(),
|
||||
});
|
||||
true
|
||||
|
@ -186,7 +186,7 @@ pub struct CodeVersion {
|
||||
pub base: usize,
|
||||
|
||||
/// The backend used to compile this module.
|
||||
pub backend: String,
|
||||
pub backend: &'static str,
|
||||
|
||||
/// `RunnableModule` for this code version.
|
||||
pub runnable_module: Arc<Box<dyn RunnableModule>>,
|
||||
|
@ -486,7 +486,7 @@ fn execute_wasi(
|
||||
baseline: true,
|
||||
msm: msm,
|
||||
base: instance.module.runnable_module.get_code().unwrap().as_ptr() as usize,
|
||||
backend: options.backend.to_string().to_owned(),
|
||||
backend: options.backend.to_string(),
|
||||
runnable_module: instance.module.runnable_module.clone(),
|
||||
});
|
||||
true
|
||||
|
Reference in New Issue
Block a user