chore(qa): format code and configure clippy lints
This commit is contained in:
@@ -1798,10 +1798,7 @@ fn test_m02_release_profile_enables_overflow_checks() {
|
||||
.split("[profile.release]")
|
||||
.nth(1)
|
||||
.expect("Must have [profile.release] section");
|
||||
let release_block = release_section
|
||||
.split('[')
|
||||
.next()
|
||||
.unwrap_or(release_section);
|
||||
let release_block = release_section.split('[').next().unwrap_or(release_section);
|
||||
assert!(
|
||||
release_block.contains("overflow-checks = true"),
|
||||
"M-02: [profile.release] must explicitly set overflow-checks = true to prevent integer overflow vulnerabilities"
|
||||
|
||||
Reference in New Issue
Block a user