1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 02:10:04 +08:00

match -> unwrap_or_else

This commit is contained in:
2019-08-04 22:56:51 +08:00
parent b214480f1d
commit 3f1cb85b61
2 changed files with 4 additions and 5 deletions

View File

@@ -19,4 +19,4 @@ pub fn download_url(url: &str, dest: &mut File) -> XResult<()> {
pub fn get_url(url: &str) -> XResult<String> {
Ok(reqwest::get(url)?.text()?)
}
}