Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

chore: fix clippy and document required checks

ldm0d51be5bfc4a1
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 000000000..edfb54af0
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,7 @@
+Before committing changes, run all of the following from the repository root and ensure they pass:
+
+```sh
+cargo fmt --all
+cargo clippy --workspace --all-targets --all-features -- -D warnings
+cargo nextest run --no-fail-fast
+```
diff --git a/moli-parser/src/xml.rs b/moli-parser/src/xml.rs
index fffe24513..7f2c0cdac 100644
--- a/moli-parser/src/xml.rs
+++ b/moli-parser/src/xml.rs
@@ -106,7 +106,7 @@ impl XmlParser {
let target = XmlLiveTreeSinkTarget::new_borrowed(dom_host, document_handle)?;
let sink = XmlDocumentSink::new(target);
let mut parser = parse_xml_document(sink, XmlParseOpts::default());
- for chunk in html_chunks(&xml) {
+ for chunk in html_chunks(xml) {
parser.process(XmlStrTendril::from(chunk));
}
parser.finish().finish_live_tree();
diff --git a/moli-protocol-webdriver-bidi/src/tests.rs b/moli-protocol-webdriver-bidi/src/tests.rs
index 592cdf660..e564aa8f9 100644
--- a/moli-protocol-webdriver-bidi/src/tests.rs
+++ b/moli-protocol-webdriver-bidi/src/tests.rs
@@ -7030,6 +7030,8 @@ fn serializes_devtools_navigate_result_to_bidi_response() {
"LOADER-1",
)),
url: "https://example.test/".to_owned(),
+ error_text: None,
+ is_download: None,
},
),
);