/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/net/tests/file_loader.rs
18 строк
520 B
Samson
Strict import formatting (grouping and granularity) (#30325)
11 сен 2023, 22:16
Не верифицирован
11 сен 2023, 22:16
aad2dcc
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use std::env; use url::Url; #[test] fn load_htm() { let mut path = env::current_dir().expect("didn't get working dir"); path.push("tests/test.jpeg"); let canon_path = path.canonicalize().expect("file path doesn't exist"); let url = Url::from_file_path(canon_path); assert!(url.is_ok()); }