File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,23 +19,17 @@ impl Boot {
1919 return ( vec ! [ CWD . load( ) . as_ref( ) . clone( ) ] , vec ! [ Default :: default ( ) ] ) ;
2020 }
2121
22- async fn go ( entry : & UrlBuf ) -> ( UrlBuf , StrandBuf ) {
23- let mut entry = clean_url ( entry ) ;
22+ async fn go ( ent : & UrlBuf ) -> ( UrlBuf , StrandBuf ) {
23+ let ent = clean_url ( engine :: absolute ( ent ) . await . unwrap_or ( ent . into ( ) ) ) ;
2424
25- if let Ok ( u) = engine:: absolute ( & entry) . await
26- && u. is_owned ( )
27- {
28- entry = u. into_owned ( ) ;
29- }
30-
31- let Some ( ( trail, child) ) = entry. pair ( ) else {
32- return ( entry, Default :: default ( ) ) ;
25+ let Some ( ( trail, child) ) = ent. pair ( ) else {
26+ return ( ent, Default :: default ( ) ) ;
3327 } ;
3428
35- if engine:: metadata ( & entry ) . await . is_ok_and ( |m| m. is_file ( ) ) {
29+ if engine:: metadata ( & ent ) . await . is_ok_and ( |m| m. is_file ( ) ) {
3630 ( trail. into ( ) , child. into ( ) )
3731 } else {
38- ( entry , Default :: default ( ) )
32+ ( ent , Default :: default ( ) )
3933 }
4034 }
4135
You can’t perform that action at this time.
0 commit comments