#value borrowed here after move

8 messages · Page 1 of 1 (latest)

blissful lantern
#

You could probably just give a borrowed path to fs::copy

std::fs::copy(&path, &home_dir).unwrap();
#

Consider doing download().unwrap() in your main, otherwise you're ignoring potential errors (the compiler should warn you about it)

#

Though you don't seem to ever return an error out of that function so that probably won't change much

#

Try debugging some things, notably your paths

#

Do you get no output at all ?

#

Are you running it in debug mode ?

blazing temple
#
Command::new(&home_dir)
    .output()
``` captures the output and doesn't print it
#

does the program do something other than print something?