@@ -2,29 +2,29 @@ use super::*;
2
2
3
3
#[ test]
4
4
fn virtual_path_extensions ( ) {
5
- assert_eq ! ( VirtualPath ( "/" . to_string ( ) ) . name_and_extension( ) , None ) ;
5
+ assert_eq ! ( VirtualPath ( "/" . to_owned ( ) ) . name_and_extension( ) , None ) ;
6
6
assert_eq ! (
7
- VirtualPath ( "/directory" . to_string ( ) ) . name_and_extension( ) ,
7
+ VirtualPath ( "/directory" . to_owned ( ) ) . name_and_extension( ) ,
8
8
Some ( ( "directory" , None ) )
9
9
) ;
10
10
assert_eq ! (
11
- VirtualPath ( "/directory/" . to_string ( ) ) . name_and_extension( ) ,
11
+ VirtualPath ( "/directory/" . to_owned ( ) ) . name_and_extension( ) ,
12
12
Some ( ( "directory" , None ) )
13
13
) ;
14
14
assert_eq ! (
15
- VirtualPath ( "/directory/file" . to_string ( ) ) . name_and_extension( ) ,
15
+ VirtualPath ( "/directory/file" . to_owned ( ) ) . name_and_extension( ) ,
16
16
Some ( ( "file" , None ) )
17
17
) ;
18
18
assert_eq ! (
19
- VirtualPath ( "/directory/.file" . to_string ( ) ) . name_and_extension( ) ,
19
+ VirtualPath ( "/directory/.file" . to_owned ( ) ) . name_and_extension( ) ,
20
20
Some ( ( ".file" , None ) )
21
21
) ;
22
22
assert_eq ! (
23
- VirtualPath ( "/directory/.file.rs" . to_string ( ) ) . name_and_extension( ) ,
23
+ VirtualPath ( "/directory/.file.rs" . to_owned ( ) ) . name_and_extension( ) ,
24
24
Some ( ( ".file" , Some ( "rs" ) ) )
25
25
) ;
26
26
assert_eq ! (
27
- VirtualPath ( "/directory/file.rs" . to_string ( ) ) . name_and_extension( ) ,
27
+ VirtualPath ( "/directory/file.rs" . to_owned ( ) ) . name_and_extension( ) ,
28
28
Some ( ( "file" , Some ( "rs" ) ) )
29
29
) ;
30
30
}
0 commit comments