Skip to content

Commit

Permalink
Add feature gate to tests that use std
Browse files Browse the repository at this point in the history
  • Loading branch information
Maytha8 committed Jan 10, 2025
1 parent 349f696 commit 693a6cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ fn test_rustup() {
}

// Regression test for https://github.com/dtolnay/thiserror/issues/335
#[cfg(feature = "std")]
#[test]
#[allow(non_snake_case)]
fn test_assoc_type_equality_constraint() {
Expand Down
2 changes: 2 additions & 0 deletions tests/test_path.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "std")]

use core::fmt::Display;
use ref_cast::RefCast;
use std::path::{Path, PathBuf};
Expand Down

0 comments on commit 693a6cd

Please sign in to comment.