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:
@@ -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()?)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user