Skip to content

Commit 6a8c228

Browse files
authored
Fix a few more bad cfgs (#1109)
* Fix a few more bad cfgs Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com> * Fix borken test Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com> --------- Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
1 parent 51a88c0 commit 6a8c228

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ check-cfg = [
261261
'cfg(core_c_str)',
262262
'cfg(core_ffi_c)',
263263
'cfg(core_intrinsics)',
264+
'cfg(criterion)',
264265
'cfg(doc_cfg)',
265266
'cfg(document_experimental_runtime_api)',
266267
'cfg(fix_y2038)',

tests/net/sockopt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fn test_sockopts_socket(s: &OwnedFd) {
186186

187187
// Test `tcp` socket options.
188188
fn test_sockopts_tcp(s: &OwnedFd) {
189-
#[cfg(any(linux_like, taraget_os = "fuchsia"))]
189+
#[cfg(any(linux_like, target_os = "fuchsia"))]
190190
{
191191
assert_eq!(sockopt::get_tcp_user_timeout(s).unwrap(), 0);
192192
sockopt::set_tcp_user_timeout(s, 7).unwrap();

tests/process/working_directory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ fn test_changing_working_directory() {
3939

4040
#[cfg(not(target_os = "fuchsia"))]
4141
rustix::process::fchdir(orig_fd_cwd).expect("changing dir to the original");
42-
#[cfg(target_os = "fushcia")]
43-
rustix::process::chdir(orig_cwd).expect("changing dir to the original");
42+
#[cfg(target_os = "fuchsia")]
43+
rustix::process::chdir(&orig_cwd).expect("changing dir to the original");
4444
let ch2_cwd = rustix::process::getcwd(ch1_cwd).expect("get the cwd");
4545

4646
assert_eq!(

0 commit comments

Comments
 (0)