Skip to content

Commit 64aaaa1

Browse files
committed
rustfmt
1 parent ebd1519 commit 64aaaa1

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

src/selectors_vm/tests.rs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
mod vm_tests {
2-
use crate::selectors_vm::*;
32
use crate::base::SharedEncoding;
43
use crate::errors::RewritingError;
54
use crate::html::Namespace;
65
use crate::memory::SharedMemoryLimiter;
76
use crate::rewritable_units::{DocumentEnd, Token, TokenCaptureFlags};
87
use crate::rewriter::AsciiCompatibleEncoding;
8+
use crate::selectors_vm::*;
99
use crate::transform_stream::{
1010
StartTagHandlingResult, TransformController, TransformStream, TransformStreamSettings,
1111
};
@@ -133,7 +133,10 @@ mod vm_tests {
133133

134134
{
135135
let mut match_handler = |m: MatchInfo| {
136-
assert_eq!(m.with_content, $expectation.should_match_with_content, "with_content");
136+
assert_eq!(
137+
m.with_content, $expectation.should_match_with_content,
138+
"with_content"
139+
);
137140
matched_ids.insert(m.match_id);
138141
};
139142

@@ -168,7 +171,12 @@ mod vm_tests {
168171
}
169172
}
170173

171-
assert_eq!(matched_ids, $expectation.matched_ids, "{:?}", matched_ids.iter().collect::<Vec<_>>());
174+
assert_eq!(
175+
matched_ids,
176+
$expectation.matched_ids,
177+
"{:?}",
178+
matched_ids.iter().collect::<Vec<_>>()
179+
);
172180
}
173181
_ => panic!("Start tag expected"),
174182
}
@@ -1222,9 +1230,10 @@ mod vm_tests {
12221230
#[test]
12231231
fn lots_of_selectors() {
12241232
let mut vm = create_vm!(
1225-
('a'..='z').map(|c| c.to_string())
1226-
.chain(('A'..='Z').map(|c| format!("#{c}")))
1227-
.chain(('0'..='9').map(|c| format!("[data{c}]")))
1233+
('a'..='z')
1234+
.map(|c| c.to_string())
1235+
.chain(('A'..='Z').map(|c| format!("#{c}")))
1236+
.chain(('0'..='9').map(|c| format!("[data{c}]")))
12281237
);
12291238

12301239
exec_for_start_tag_and_assert!(
@@ -1295,9 +1304,9 @@ mod vm_tests {
12951304

12961305
mod compiler {
12971306
use super::vm_tests::test_with_token;
1298-
use crate::selectors_vm::*;
12991307
use crate::html::Namespace;
13001308
use crate::rewritable_units::Token;
1309+
use crate::selectors_vm::*;
13011310
use crate::test_utils::ASCII_COMPATIBLE_ENCODINGS;
13021311
use encoding_rs::UTF_8;
13031312

0 commit comments

Comments
 (0)