Skip to content

Commit 10e03b4

Browse files
committed
chore: Simplify imports
1 parent fd68b6e commit 10e03b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

css-inline/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
rust_2018_compatibility
2626
)]
2727

28-
#[cfg(feature = "http")]
29-
use attohttpc::{Method, RequestBuilder};
30-
3128
use kuchiki::{
3229
parse_html, traits::TendrilSink, ElementData, Node, NodeDataRef, NodeRef, Specificity,
3330
};
@@ -360,7 +357,7 @@ fn load_external(location: &str) -> Result<String> {
360357
if location.starts_with("https") | location.starts_with("http") {
361358
#[cfg(feature = "http")]
362359
{
363-
let request = RequestBuilder::try_new(Method::GET, location)?;
360+
let request = attohttpc::RequestBuilder::try_new(attohttpc::Method::GET, location)?;
364361
let response = request.send()?;
365362
Ok(response.text()?)
366363
}

0 commit comments

Comments
 (0)