File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
examples/api/src-tauri/src Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ pub fn run() {
114
114
headers. push (
115
115
tiny_http:: Header :: from_bytes (
116
116
& b"Set-Cookie" [ ..] ,
117
- & format ! ( "session-token=test-value; Secure; Path=/; Expires={expires_str}" )
118
- . as_bytes ( ) [ .. ] ,
117
+ format ! ( "session-token=test-value; Secure; Path=/; Expires={expires_str}" )
118
+ . as_bytes ( ) ,
119
119
)
120
120
. unwrap ( ) ,
121
121
) ;
Original file line number Diff line number Diff line change @@ -43,15 +43,13 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
43
43
. open ( & path) ?;
44
44
45
45
let reader = BufReader :: new ( file) ;
46
- let store = CookieStoreMutex :: load ( path. clone ( ) , reader) . unwrap_or_else ( |_e| {
46
+ CookieStoreMutex :: load ( path. clone ( ) , reader) . unwrap_or_else ( |_e| {
47
47
#[ cfg( feature = "tracing" ) ]
48
48
tracing:: warn!(
49
49
"failed to load cookie store: {_e}, falling back to empty store"
50
50
) ;
51
51
CookieStoreMutex :: new ( path, Default :: default ( ) )
52
- } ) ;
53
-
54
- store
52
+ } )
55
53
} ;
56
54
57
55
let state = Http {
You can’t perform that action at this time.
0 commit comments