Skip to content

Commit

Permalink
address unused_qualifications lint issues from nightly
Browse files Browse the repository at this point in the history
This is another change that is currently breaking the coverage task.
  • Loading branch information
Brian Caswell committed Mar 6, 2024
1 parent 01b54a7 commit edc2768
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion boreal-parser/src/expression/for_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ fn string_enum_element(input: Input) -> ParseResult<SetElement> {
/// Equivalent to the `for_variables` pattern in grammar.y in libyara.
fn for_variables(input: Input) -> ParseResult<(Vec<String>, Range<usize>)> {
let start = input.pos();
let (input, identifiers) = separated_list1(rtrim(char(',')), crate::string::identifier)(input)?;
let (input, identifiers) = separated_list1(rtrim(char(',')), string::identifier)(input)?;
Ok((input, (identifiers, input.get_span_from(start))))
}

Expand Down
2 changes: 1 addition & 1 deletion boreal/src/module/pe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ impl Pe {

// Compute offset of checksum in the file: this is replaced by 0 when computing the
// checksum
let dos_header = pe::ImageDosHeader::parse(mem).ok()?;
let dos_header = ImageDosHeader::parse(mem).ok()?;
// 64 is the offset of the checksum in the optional header, and 24 is the offset of the
// optional header in the nt headers: See
// <https://docs.microsoft.com/en-us/windows/win32/debug/pe-format>
Expand Down
2 changes: 1 addition & 1 deletion boreal/src/regex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub(crate) use visitor::{visit, VisitAction, Visitor};
/// Regex following the YARA format.
#[derive(Clone, Debug)]
pub struct Regex {
meta: regex_automata::meta::Regex,
meta: meta::Regex,
expr: String,
}

Expand Down
2 changes: 1 addition & 1 deletion boreal/src/scanner/process/sys/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl MapRegion {
return None;
}

let file = std::fs::File::open(path).ok()?;
let file = File::open(path).ok()?;

// Then, redo the checks but on the metadata of the opened files, to prevent
// any TOCTOU issues.
Expand Down

0 comments on commit edc2768

Please sign in to comment.