mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-30 00:51:34 +00:00
Fixes remaining clippy issues
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
use std::{f32, f64};
|
||||
use wasmer_runtime_core::vm::Ctx;
|
||||
|
||||
#![allow(clippy::all)]
|
||||
pub fn _llvm_copysign_f32(_ctx: &mut Ctx, x: f64, y: f64) -> f64 {
|
||||
// f32::copysign(x, y)
|
||||
f64::copysign(x, y)
|
||||
x.copysign(y)
|
||||
}
|
||||
|
||||
#![allow(clippy::all)]
|
||||
pub fn _llvm_copysign_f64(_ctx: &mut Ctx, x: f64, y: f64) -> f64 {
|
||||
f64::copysign(x, y)
|
||||
x.copysign(y)
|
||||
}
|
||||
|
||||
/// emscripten: _llvm_log10_f64
|
||||
|
@ -27,7 +27,6 @@ use libc::{
|
||||
exit,
|
||||
fstat,
|
||||
getpid,
|
||||
getuid,
|
||||
// readlink,
|
||||
// iovec,
|
||||
lseek,
|
||||
@ -612,14 +611,6 @@ pub fn ___syscall197(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_in
|
||||
0
|
||||
}
|
||||
|
||||
// getuid
|
||||
pub fn ___syscall199(_ctx: &mut Ctx, _one: i32, _two: i32) -> i32 {
|
||||
debug!("emscripten::___syscall199 (getuid)");
|
||||
let uid = unsafe { getuid() as _ };
|
||||
debug!(" => {}", uid);
|
||||
uid
|
||||
}
|
||||
|
||||
pub fn ___syscall209(_ctx: &mut Ctx, _one: i32, _two: i32) -> i32 {
|
||||
debug!("emscripten::___syscall209");
|
||||
-1
|
||||
|
Reference in New Issue
Block a user