about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-12-05 14:52:40 -0500
committerGitHub <noreply@github.com>2023-12-05 14:52:40 -0500
commit2d2a76d411911a58fab02770363055175b5154d3 (patch)
treeadb55344df5d4b3bc67c593f1d72dc103aa52fae
parentec94480d9877e9c7ccf1255ab592dfc85d07ec50 (diff)
parented87ecc4d00411bde0f7db08052baf3ebcaa485c (diff)
downloadrust-2d2a76d411911a58fab02770363055175b5154d3.tar.gz
rust-2d2a76d411911a58fab02770363055175b5154d3.zip
Rollup merge of #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`.
-rw-r--r--library/std/src/sys/unix/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/os.rs b/library/std/src/sys/unix/os.rs
index 077698a462c..881b3a25c51 100644
--- a/library/std/src/sys/unix/os.rs
+++ b/library/std/src/sys/unix/os.rs
@@ -180,7 +180,7 @@ pub fn getcwd() -> io::Result<PathBuf> {
 }
 
 #[cfg(target_os = "espidf")]
-pub fn chdir(p: &path::Path) -> io::Result<()> {
+pub fn chdir(_p: &path::Path) -> io::Result<()> {
     super::unsupported::unsupported()
 }