From 29e719477fd9e88a6aa4938ba678e664eee267d7 Mon Sep 17 00:00:00 2001 From: "Hatter Jiang@Pixelbook" Date: Fri, 9 Aug 2019 23:12:26 +0800 Subject: [PATCH] change print_status_last_line pub --- src/util_io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util_io.rs b/src/util_io.rs index f5071d3..d0f98da 100644 --- a/src/util_io.rs +++ b/src/util_io.rs @@ -15,7 +15,7 @@ pub fn copy_io(reader: &mut R, writer: &mut W, total: i64) copy_io_with_head(reader, writer, total, "Downloading") } -fn print_status_last_line(head: &str, total: i64, written: i64, cost: Duration) { +pub fn print_status_last_line(head: &str, total: i64, written: i64, cost: Duration) { let mut download_speed = "-".to_string(); let cost_as_secs = cost.as_secs(); if cost_as_secs > 0 {