Skip to content

Commit

Permalink
Update crates/test-case-core/src/test_case.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
  • Loading branch information
kezhuw and Darksonn authored May 12, 2024
1 parent f571a02 commit 7472801
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/test-case-core/src/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ fn is_test_attribute(attr: &Attribute) -> bool {
syn::Meta::Path(path) => path,
_ => return false,
};
let candidates = [
const CANDIDATES_LEN: usize = 4;

let candidates: [[&str; CANDIDATES_LEN]; _] = [
["core", "prelude", "*", "test"],
["std", "prelude", "*", "test"],
];
Expand Down

0 comments on commit 7472801

Please # to comment.