From ebbe8dbfaefa0b7aa699ec07251b015856500765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sun, 5 Dec 2021 15:27:38 +0300 Subject: [PATCH] test(paste): update paste test about borrowing the config --- src/paste.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/paste.rs b/src/paste.rs index f7ef182..3fa6a4e 100644 --- a/src/paste.rs +++ b/src/paste.rs @@ -321,7 +321,9 @@ mod tests { type_: PasteType::RemoteFile, }; let client_data = Data::new(Client::default()); - let file_name = paste.store_remote_file(None, &client_data, &config).await?; + let file_name = paste + .store_remote_file(None, &client_data, config.clone()) + .await?; let file_path = PasteType::RemoteFile .get_path(&config.server.upload_path) .join(&file_name);