diff options
| author | gyoder <70408179+gyoder@users.noreply.github.com> | 2025-07-12 21:51:05 -0600 |
|---|---|---|
| committer | gyoder <70408179+gyoder@users.noreply.github.com> | 2025-07-12 21:52:09 -0600 |
| commit | 085aa5a1f553d4acb2acc7ac7d74690e9326a3a5 (patch) | |
| tree | 9359eebdb26f8fc52e0699160f118d6904dd9afe /htmlua-parser/src/helpers.rs | |
| parent | 4144fa2cba9732c1cee39b44b38f3752aefc4c03 (diff) | |
added full request and tests
Diffstat (limited to 'htmlua-parser/src/helpers.rs')
| -rw-r--r-- | htmlua-parser/src/helpers.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/htmlua-parser/src/helpers.rs b/htmlua-parser/src/helpers.rs index 90439f7..512ebb7 100644 --- a/htmlua-parser/src/helpers.rs +++ b/htmlua-parser/src/helpers.rs @@ -1,4 +1,8 @@ -use std::{fs::File, io::{BufRead, BufReader, Read, Seek, SeekFrom}, path::PathBuf}; +use std::{ + fs::File, + io::{BufRead, BufReader, Read, Seek, SeekFrom}, + path::PathBuf, +}; use anyhow::Result; use kuchikiki::NodeRef; @@ -9,7 +13,6 @@ use tendril::TendrilSink; pub fn read_doc_from_file(path: PathBuf) -> Result<NodeRef> { - let mut file = File::open(path)?; let mut reader = BufReader::new(&mut file); |
