Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglerchris committed Nov 30, 2024
1 parent 3ea1ae1 commit 6c9df62
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/html2term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ extern crate argparse;
extern crate unicode_width;
#[cfg(unix)]
mod top {
use argparse::{ArgumentParser, Store};
#[cfg(feature = "css")]
use argparse::StoreFalse;
use argparse::{ArgumentParser, Store};
use html2text::render::{RichAnnotation, TaggedLine, TaggedLineElement};
use std::collections::HashMap;
use std::io::{self, Write};
Expand Down Expand Up @@ -358,8 +358,7 @@ mod top {
dom: &html2text::RcDom,
inspect_path: &[usize],
width: usize,
#[allow(unused)]
options: &Options,
#[allow(unused)] options: &Options,
) -> Vec<TaggedLine<Vec<RichAnnotation>>> {
let config = html2text::config::rich();
#[cfg(feature = "css")]
Expand Down Expand Up @@ -394,14 +393,14 @@ mod top {
let config = config
.add_agent_css(
&(format!(
r#"
r#"
html {} {{
color: white !important;
background-color: black !important;
display: x-raw-dom;
}}
"#,
path_selector
path_selector
)),
)
.expect("Invalid CSS");
Expand Down

0 comments on commit 6c9df62

Please sign in to comment.