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

address unused_qualifications lint issues from nightly #122

Merged
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 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/compiler/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ mod tests {

#[test]
fn test_types_traits() {
test_type_traits_non_clonable(compile_module(&crate::module::Time));
test_type_traits_non_clonable(compile_module(&module::Time));
test_type_traits_non_clonable(ValueOperation::Subfield("a".to_owned()));
test_type_traits_non_clonable(BoundedValueIndex::Module(0));
test_type_traits_non_clonable(ModuleOperations {
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
Loading