浏览代码

Update dependencies and Cargo.lock to latest versions, fix some warnings

timvisee 6 年之前
父节点
当前提交
f2b98373d9
共有 4 个文件被更改,包括 173 次插入161 次删除
  1. 169 157
      Cargo.lock
  2. 2 2
      Cargo.toml
  3. 1 1
      src/action/download.rs
  4. 1 1
      src/action/upload.rs

文件差异内容过多而无法显示
+ 169 - 157
Cargo.lock


+ 2 - 2
Cargo.toml

@@ -105,7 +105,7 @@ clipboard-crate = ["clipboard"]
 chbs = "0.0.8"
 chrono = "0.4"
 clap = "2.33"
-colored = "1.7"
+colored = "1.8"
 derive_builder = "0.7"
 directories = "2.0"
 failure = "0.1"
@@ -118,7 +118,7 @@ pathdiff = "0.1"
 pbr = "1"
 prettytable-rs = "0.8"
 qr2term = { version = "0.1", optional = true }
-rpassword = "3.0"
+rpassword = "4.0"
 serde = "1.0"
 serde_derive = "1.0"
 tar = { version = "0.4", optional = true }

+ 1 - 1
src/action/download.rs

@@ -163,7 +163,7 @@ impl<'a> Download<'a> {
 
         // Create a progress bar reporter
         let progress_bar = Arc::new(Mutex::new(ProgressBar::new_download()));
-        let progress_reader: Arc<Mutex<ProgressReporter>> = progress_bar;
+        let progress_reader: Arc<Mutex<dyn ProgressReporter>> = progress_bar;
 
         // Create a transfer client
         let transfer_client = client_config.client(true);

+ 1 - 1
src/action/upload.rs

@@ -334,7 +334,7 @@ impl<'a> Upload<'a> {
         };
 
         // Build the progress reporter
-        let progress_reporter: Arc<Mutex<ProgressReporter>> = progress_bar;
+        let progress_reporter: Arc<Mutex<dyn ProgressReporter>> = progress_bar;
 
         // Get the password to use and whether it was generated
         let password = matcher_upload.password();

部分文件因为文件数量过多而无法显示