Use PathBuf for field Options::install_path

Since it does not require a utf-8 string.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-02 22:28:44 +10:00
parent a52ac3fc7a
commit f72eafb049
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -114,7 +114,7 @@ struct Options {
/// switches over to a "local" install, where binaries are installed at the path given, and the
/// global metadata files are not updated.
#[clap(help_heading = "Options", long)]
install_path: Option<String>,
install_path: Option<PathBuf>,
/// Enforce downloads over secure transports only.
///