File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ impl Url {
479479 ///
480480 /// This returns `Err` if the given path is not absolute
481481 /// or, with a Windows path, if the prefix is not a disk prefix (e.g. `C:`).
482- pub fn from_file_path < P : AsPath + ? Sized > ( path : & P ) -> Result < Url , ( ) > {
482+ pub fn from_file_path < P : AsPath > ( path : P ) -> Result < Url , ( ) > {
483483 let path = try!( path_to_file_url_path ( path. as_path ( ) ) ) ;
484484 Ok ( Url :: from_path_common ( path) )
485485 }
@@ -501,7 +501,7 @@ impl Url {
501501 /// as the base URL is `file:///var/index.html`, which might not be what was intended.
502502 ///
503503 /// (Note that `Path::new` removes any trailing slash.)
504- pub fn from_directory_path < P : AsPath + ? Sized > ( path : & P ) -> Result < Url , ( ) > {
504+ pub fn from_directory_path < P : AsPath > ( path : P ) -> Result < Url , ( ) > {
505505 let mut path = try!( path_to_file_url_path ( path. as_path ( ) ) ) ;
506506 // Add an empty path component (i.e. a trailing slash in serialization)
507507 // so that the entire path is used as a base URL.
You can’t perform that action at this time.
0 commit comments