Skip to content

Commit 2d2a76d

Browse files
Rollup merge of rust-lang#117793 - wdunicornpro:patch-1, r=workingjubilee
Update variable name to fix `unused_variables` warning This PR fixes an `unused_variables` warning within `os.rs` when targeting `espidf`.
2 parents ec94480 + ed87ecc commit 2d2a76d

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub fn getcwd() -> io::Result<PathBuf> {
180180
}
181181

182182
#[cfg(target_os = "espidf")]
183-
pub fn chdir(p: &path::Path) -> io::Result<()> {
183+
pub fn chdir(_p: &path::Path) -> io::Result<()> {
184184
super::unsupported::unsupported()
185185
}
186186

0 commit comments

Comments
 (0)