mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 10:39:10 -05:00
12 lines
280 B
Rust
12 lines
280 B
Rust
|
fn op_read_sync(
|
||
|
state: &mut OpState,
|
||
|
rid: ResourceId,
|
||
|
mut buf: ZeroCopyBuf,
|
||
|
) -> Result<u32, AnyError> {
|
||
|
// Should not warn about unused `mut buf` binding.
|
||
|
//
|
||
|
// This was caused due to incorrect codegen by fast_call.rs
|
||
|
// on an incompatible op function.
|
||
|
Ok(23)
|
||
|
}
|