mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-26 09:18:11 -07:00
Fix small clippy warnings
This commit is contained in:
committed by
Will Greenberg
parent
b41f61bfa6
commit
4edf001ca4
+1
-1
@@ -114,7 +114,7 @@ async fn perform_analysis(
|
|||||||
let (analysis_file, qmdl_file, entry_index) = {
|
let (analysis_file, qmdl_file, entry_index) = {
|
||||||
let mut qmdl_store = qmdl_store_lock.write().await;
|
let mut qmdl_store = qmdl_store_lock.write().await;
|
||||||
let (entry_index, _) = qmdl_store
|
let (entry_index, _) = qmdl_store
|
||||||
.entry_for_name(&name)
|
.entry_for_name(name)
|
||||||
.ok_or(format!("failed to find QMDL store entry for {}", name))?;
|
.ok_or(format!("failed to find QMDL store entry for {}", name))?;
|
||||||
let analysis_file = qmdl_store
|
let analysis_file = qmdl_store
|
||||||
.clear_and_open_entry_analysis(entry_index)
|
.clear_and_open_entry_analysis(entry_index)
|
||||||
|
|||||||
+1
-1
@@ -427,7 +427,7 @@ mod test {
|
|||||||
let bitsize = 513;
|
let bitsize = 513;
|
||||||
let req = build_log_mask_request(log_type, bitsize, &crate::diag_device::LOG_CODES_FOR_RAW_PACKET_LOGGING);
|
let req = build_log_mask_request(log_type, bitsize, &crate::diag_device::LOG_CODES_FOR_RAW_PACKET_LOGGING);
|
||||||
assert_eq!(req, Request::LogConfig(LogConfigRequest::SetMask {
|
assert_eq!(req, Request::LogConfig(LogConfigRequest::SetMask {
|
||||||
log_type: log_type,
|
log_type,
|
||||||
log_mask_bitsize: bitsize,
|
log_mask_bitsize: bitsize,
|
||||||
log_mask: vec![
|
log_mask: vec![
|
||||||
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||||
|
|||||||
Reference in New Issue
Block a user