refactor: clean up unwrap and clone (#17282)

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
This commit is contained in:
Yiyu Lin 2023-01-15 12:06:46 +08:00 committed by GitHub
parent 05ef925eb0
commit fd85f840cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 75 additions and 94 deletions

View file

@ -8,4 +8,4 @@ use once_cell::sync::Lazy;
static CURRENT_STD_URL_STR: &str = "https://deno.land/std@0.172.0/";
pub static CURRENT_STD_URL: Lazy<Url> =
Lazy::new(|| Url::parse(CURRENT_STD_URL_STR).unwrap());
Lazy::new(|| Url::parse(CURRENT_STD_URL_STR).expect("invalid std url"));