Skip to content

Commit 166f306

Browse files
committed
fix(build): revert unnecessary format changes
1 parent 5099f28 commit 166f306

File tree

3 files changed

+90
-156
lines changed

3 files changed

+90
-156
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": false
3+
}

src/builder.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use std::borrow::{Borrow, BorrowMut, Cow};
1+
use std::borrow::{Cow, Borrow, BorrowMut};
22

3-
use crate::{Cookie, Expiration, SameSite};
3+
use crate::{Cookie, SameSite, Expiration};
44

55
/// Structure that follows the builder pattern for building `Cookie` structs.
66
///
@@ -59,13 +59,10 @@ impl<'c> CookieBuilder<'c> {
5959
/// assert_eq!(c.name_value(), ("foo", "bar"));
6060
/// ```
6161
pub fn new<N, V>(name: N, value: V) -> Self
62-
where
63-
N: Into<Cow<'c, str>>,
64-
V: Into<Cow<'c, str>>,
62+
where N: Into<Cow<'c, str>>,
63+
V: Into<Cow<'c, str>>
6564
{
66-
CookieBuilder {
67-
cookie: Cookie::new(name, value),
68-
}
65+
CookieBuilder { cookie: Cookie::new(name, value) }
6966
}
7067

7168
/// Sets the `value` field in the cookie being built.
@@ -371,10 +368,7 @@ impl<'c> CookieBuilder<'c> {
371368
/// Instead of using this method, pass a `CookieBuilder` directly into
372369
/// methods expecting a `T: Into<Cookie>`. For other cases, use
373370
/// [`CookieBuilder::build()`].
374-
#[deprecated(
375-
since = "0.18.0",
376-
note = "`CookieBuilder` can be passed in to methods expecting a `Cookie`; for other cases, use `CookieBuilder::build()`"
377-
)]
371+
#[deprecated(since="0.18.0", note="`CookieBuilder` can be passed in to methods expecting a `Cookie`; for other cases, use `CookieBuilder::build()`")]
378372
pub fn finish(self) -> Cookie<'c> {
379373
self.cookie
380374
}

0 commit comments

Comments
 (0)