@@ -107,7 +107,7 @@ fn test_device_path_to_string() {
107107 let path = create_test_device_path ( ) ;
108108
109109 let to_text =
110- |display_only, allow_shortcuts| path. to_string ( display_only, allow_shortcuts) . unwrap ( ) ;
110+ |display_only, allow_shortcuts| path. to_string16 ( display_only, allow_shortcuts) . unwrap ( ) ;
111111
112112 assert_eq ! (
113113 & * to_text( DisplayOnly ( true ) , AllowShortcuts ( true ) ) ,
@@ -167,7 +167,7 @@ fn test_device_path_node_to_string() {
167167 let nodes: Vec < _ > = path. node_iter ( ) . collect ( ) ;
168168
169169 let to_text = |node : & DevicePathNode , display_only, allow_shortcuts| {
170- node. to_string ( display_only, allow_shortcuts) . unwrap ( )
170+ node. to_string16 ( display_only, allow_shortcuts) . unwrap ( )
171171 } ;
172172
173173 assert_eq ! (
@@ -229,20 +229,20 @@ fn test_device_path_append() {
229229 let node = path. node_iter ( ) . next ( ) . unwrap ( ) ;
230230
231231 assert_eq ! (
232- path. to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
232+ path. to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
233233 . unwrap( ) ,
234234 cstr16!( "Ata(Primary,Master,0x1)/VenMsg(E0C14753-F9BE-11D2-9A0C-0090273FC14D)" )
235235 ) ;
236236 assert_eq ! (
237- node. to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
237+ node. to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
238238 . unwrap( ) ,
239239 cstr16!( "Ata(Primary,Master,0x1)" )
240240 ) ;
241241
242242 assert_eq ! (
243243 path. append_path( & path2)
244244 . unwrap( )
245- . to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
245+ . to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
246246 . unwrap( ) ,
247247 cstr16!(
248248 "Ata(Primary,Master,0x1)/VenMsg(E0C14753-F9BE-11D2-9A0C-0090273FC14D)/Ata(Primary,Master,0x1)/VenMsg(E0C14753-F9BE-11D2-9A0C-0090273FC14D)"
@@ -251,7 +251,7 @@ fn test_device_path_append() {
251251 assert_eq ! (
252252 path. append_node( node)
253253 . unwrap( )
254- . to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
254+ . to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
255255 . unwrap( ) ,
256256 cstr16!(
257257 "Ata(Primary,Master,0x1)/VenMsg(E0C14753-F9BE-11D2-9A0C-0090273FC14D)/Ata(Primary,Master,0x1)"
0 commit comments