mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix preload bytes format
This commit is contained in:
parent
b9def8216d
commit
0f01eb83de
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
use super::{Feature, Page};
|
use super::{Feature, Page};
|
||||||
|
use crate::tool::Format;
|
||||||
use ggemini::client::connection::response::{Input, Redirect};
|
use ggemini::client::connection::response::{Input, Redirect};
|
||||||
use ggemini::{
|
use ggemini::{
|
||||||
client::{Client, Request, Response},
|
client::{Client, Request, Response},
|
||||||
|
|
@ -444,7 +445,7 @@ fn handle(
|
||||||
total: 0, // initial totals
|
total: 0, // initial totals
|
||||||
},
|
},
|
||||||
(
|
(
|
||||||
move |_, total| status.set_description(Some(&format!("Download: {total} bytes"))),
|
move |_, total| status.set_description(Some(&format!("Download: {}", total.bytes()))),
|
||||||
{
|
{
|
||||||
move | result | match result {
|
move | result | match result {
|
||||||
Ok((memory_input_stream, _)) => {
|
Ok((memory_input_stream, _)) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue