Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nightly clippy issues in tests #264

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading