diff --git a/quickpeep_html_charset_detection/src/steps.rs b/quickpeep_html_charset_detection/src/steps.rs
index 39dc63f..d5a50b4 100644
--- a/quickpeep_html_charset_detection/src/steps.rs
+++ b/quickpeep_html_charset_detection/src/steps.rs
@@ -64,7 +64,6 @@ pub fn prescan(bytes: &[u8]) -> Option<&'static Encoding> {
.map(|c| matches!(c, 0x09 | 0x0A | 0x0C | 0x0D | 0x20 | 0x2F))
.unwrap_or(false);
if check.starts_with(b" Option<&'static Encoding> {
// Attributes: Get an attribute and its value. If no attribute was sniffed, then jump to the processing step below.
while let Some((key, value)) = prescan_get_attribute(&bytes, &mut position) {
- println!("att {key:?} {value:?}");
// If the attribute's name is already in attribute list, then return to the step labeled attributes.
if attributes.contains(&key) {
continue;
@@ -222,7 +220,6 @@ pub fn prescan(bytes: &[u8]) -> Option<&'static Encoding> {
pub fn prescan_get_attribute(bytes: &[u8], position: &mut usize) -> Option<(Vec, Vec)> {
// If the byte at position is one of 0x09 (HT), 0x0A (LF), 0x0C (FF), 0x0D (CR), 0x20 (SP),
// or 0x2F (/) then advance position to the next byte and redo this step.
- println!("A{position}");
while matches!(
bytes.get(*position),
Some(0x09 | 0x0A | 0x0C | 0x0D | 0x20 | 0x2F)