Skip to content

Commit

Permalink
Fix nightly clippy issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dburgener committed Apr 22, 2024
1 parent 107036c commit 054a4fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ mod tests {
parents: vec![types.get("domain").unwrap()],
},
InheritedAnnotation {
annotation: AnnotationInfo::Alias(CascadeString::from("alias").into()),
annotation: AnnotationInfo::Alias(CascadeString::from("alias")),
parents: vec![types.get("domain").unwrap()],
},
// Not deduped, because derive doesn't dedup by design
Expand Down
2 changes: 1 addition & 1 deletion src/internal_rep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ mod tests {
);

let rules = generate_sid_rules(vec![&sid1, &sid2]);
let cil_expected = vec![
let cil_expected = [
"(sid foo)",
"(sidcontext foo (system_u system_r foo_t ((s0) (s0))))",
"(sid bar)",
Expand Down
10 changes: 5 additions & 5 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ fn makelist_test() {
fn multifiles_test() {
// valid_policy_test() is somewhat tightly wound to the one file case, so we'll code our
// own copy here
let policy_files = vec![
let policy_files = [
[POLICIES_DIR, "multifile1.cas"].concat(),
[POLICIES_DIR, "multifile2.cas"].concat(),
];
Expand All @@ -442,7 +442,7 @@ fn multifiles_test() {

#[test]
fn compile_machine_policies_test() {
let policy_files = vec![
let policy_files = [
[POLICIES_DIR, "machine_building1.cas"].concat(),
[POLICIES_DIR, "machine_building2.cas"].concat(),
[POLICIES_DIR, "machine_building3.cas"].concat(),
Expand Down Expand Up @@ -489,7 +489,7 @@ fn compile_machine_policies_test() {

#[test]
fn compile_machine_policies_all_test() {
let policy_files = vec![
let policy_files = [
[POLICIES_DIR, "machine_building1.cas"].concat(),
[POLICIES_DIR, "machine_building2.cas"].concat(),
[POLICIES_DIR, "machine_building3.cas"].concat(),
Expand Down Expand Up @@ -938,7 +938,7 @@ fn extend_double_declaration_error() {

#[test]
fn machine_building_error() {
let policy_files = vec![
let policy_files = [
[POLICIES_DIR, "machine_building1.cas"].concat(),
[POLICIES_DIR, "machine_building2.cas"].concat(),
[POLICIES_DIR, "machine_building3.cas"].concat(),
Expand Down Expand Up @@ -1332,7 +1332,7 @@ fn valid_nested_alias() {

#[test]
fn invalid_default_test() {
let policy_files = vec![
let policy_files = [
[ERROR_POLICIES_DIR, "invalid_default1.cas"].concat(),
[ERROR_POLICIES_DIR, "invalid_default2.cas"].concat(),
];
Expand Down

0 comments on commit 054a4fa

Please sign in to comment.