File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1382,7 +1382,6 @@ impl SpircTask {
1382
1382
// has_shuffle/repeat seem to always be true in these replace msgs,
1383
1383
// but to replicate the behaviour of the Android client we have to
1384
1384
// ignore false values.
1385
- let state = state;
1386
1385
if state. repeat ( ) {
1387
1386
self . state . set_repeat ( true ) ;
1388
1387
}
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ impl SpClient {
392
392
) -> SpClientResult {
393
393
let body = protobuf:: text_format:: print_to_string ( message) ;
394
394
395
- let mut headers = headers. unwrap_or_else ( HeaderMap :: new ) ;
395
+ let mut headers = headers. unwrap_or_default ( ) ;
396
396
headers. insert (
397
397
CONTENT_TYPE ,
398
398
HeaderValue :: from_static ( "application/x-protobuf" ) ,
@@ -409,7 +409,7 @@ impl SpClient {
409
409
headers : Option < HeaderMap > ,
410
410
body : Option < & str > ,
411
411
) -> SpClientResult {
412
- let mut headers = headers. unwrap_or_else ( HeaderMap :: new ) ;
412
+ let mut headers = headers. unwrap_or_default ( ) ;
413
413
headers. insert ( ACCEPT , HeaderValue :: from_static ( "application/json" ) ) ;
414
414
415
415
self . request ( method, endpoint, Some ( headers) , body) . await
You can’t perform that action at this time.
0 commit comments