mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
REST backend: use Bytes directly
This commit is contained in:
parent
90b2293016
commit
099e27dbae
@ -170,9 +170,7 @@ impl ReadBackend for RestBackend {
|
||||
.get(url.clone())
|
||||
.send()?
|
||||
.check_error()?
|
||||
.bytes()?
|
||||
.into_iter()
|
||||
.collect())
|
||||
.bytes()?)
|
||||
},
|
||||
notify,
|
||||
)?)
|
||||
@ -198,9 +196,7 @@ impl ReadBackend for RestBackend {
|
||||
.header("Range", header_value.clone())
|
||||
.send()?
|
||||
.check_error()?
|
||||
.bytes()?
|
||||
.into_iter()
|
||||
.collect())
|
||||
.bytes()?)
|
||||
},
|
||||
notify,
|
||||
)?)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user