Skip to content

Commit 69a5309

Browse files
authored
refactor: remove unnecessary code (#33)
1 parent d433f45 commit 69a5309

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

examples/cookies_load.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async fn main() {
1111
config.basic_auth = Some((String::from("username"), Some(String::from("password"))));
1212
config.user_agent = Some(String::from("ExampleProgram/0.0.1 my@email.com"));
1313

14-
let mut jar = reqwest::cookie::Jar::default();
14+
let jar = reqwest::cookie::Jar::default();
1515
jar.set_cookies(
1616
&mut [HeaderValue::from_str(
1717
&"auth=[AUTH_COOKIE_HERE], twoFactorAuth=[TWO_FACTOR_AUTH_COOKIE_HERE]",

examples/cookies_store.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ async fn main() {
1313

1414
let cookie_store = std::sync::Arc::new(reqwest::cookie::Jar::default());
1515
config.client = reqwest::Client::builder()
16-
.cookie_store(true)
1716
.cookie_provider(cookie_store.clone())
1817
.build()
1918
.unwrap();

0 commit comments

Comments
 (0)