Skip to content

Commit 45367d4

Browse files
committed
fix: unused vars are errors
1 parent f6992ba commit 45367d4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

library/std/src/sys/pal/zkvm/args.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
use super::{WORD_SIZE, abi};
21
use crate::ffi::OsString;
32
use crate::fmt;
4-
use crate::sys::os_str;
5-
use crate::sys_common::FromInner;
63

74
pub struct Args {
85
i_forward: usize,
@@ -16,7 +13,7 @@ pub fn args() -> Args {
1613

1714
impl Args {
1815
/// Args::argv is currently not implemented.
19-
fn argv(i: usize) -> OsString {
16+
fn argv(_i: usize) -> OsString {
2017
panic!("Args::argv is currently not implemented");
2118
}
2219
}

library/std/src/sys/pal/zkvm/stdio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Stdin {
1313
}
1414

1515
impl io::Read for Stdin {
16-
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
16+
fn read(&mut self, _buf: &mut [u8]) -> io::Result<usize> {
1717
return Err(io::Error::new(
1818
io::ErrorKind::Other,
1919
"io::Read for Stdin is currently not implemented",

0 commit comments

Comments
 (0)