From 7966f61894f6888de9a077078b37714f07f7d70b Mon Sep 17 00:00:00 2001 From: Adam Cooper Date: Sun, 27 Feb 2022 23:14:28 -0500 Subject: [PATCH] [wip] Runs without panic, but doesn't actually update, apparently. --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index aaaa6b8..dd4bc73 100644 --- a/src/main.rs +++ b/src/main.rs @@ -143,8 +143,7 @@ async fn publicise_it(path: &String, password: &String) -> Result Result> { debug!("Entering: traverse()"); // Initialize the indexed "pointer" let mut current_index: usize = 0; @@ -189,6 +188,7 @@ async fn traverse(mut result: Multistatus, password: &String) { } current_index += 1; } + Ok(true) } fn get_password() -> Result { @@ -230,6 +230,6 @@ async fn main() -> std::io::Result<()> { let mut result: Multistatus = from_str(&folder_contents).unwrap(); println!("{:?}", result); - traverse(result, &password); + let result: bool = traverse(result, &password).await.unwrap(); Ok(()) }