Skip to content

Commit

Permalink
[Code Quality]: Addressing new clippy lints (warns) (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfried-aws committed Aug 25, 2023
1 parent 4142000 commit 290fbc1
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 162 deletions.
4 changes: 2 additions & 2 deletions guard/src/rules/eval_context_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::convert::TryFrom;

#[test]
fn extraction_test() -> Result<()> {
let rules_files = r###"
let rules_files = r#"
let aws_route53_recordset_resources = Resources.*[ Type == 'AWS::Route53::RecordSet' ]
rule aws_route53_recordset when %aws_route53_recordset_resources !empty {
%aws_route53_recordset_resources.Properties.Comment == "DNS name for my instance."
Expand All @@ -16,7 +16,7 @@ fn extraction_test() -> Result<()> {
%aws_route53_recordset_resources.Properties.TTL == "900"
%aws_route53_recordset_resources.Properties.HostedZoneName == "HostedZoneName"
}
"###;
"#;

let rules = RulesFile::try_from(rules_files)?;
let path_value = PathAwareValue::try_from("{}")?;
Expand Down

0 comments on commit 290fbc1

Please sign in to comment.