@@ -27,56 +27,56 @@ fn device_factory_reset() {
2727 syscall ! ( client1. write_file(
2828 Location :: Internal ,
2929 path!( "to_save_internal" ) . into( ) ,
30- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
30+ Bytes :: from ( b"data" ) ,
3131 None ,
3232 ) ) ;
3333 syscall ! ( client1. write_file(
3434 Location :: External ,
3535 path!( "to_save_external" ) . into( ) ,
36- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
36+ Bytes :: from ( b"data" ) ,
3737 None ,
3838 ) ) ;
3939 syscall ! ( client1. write_file(
4040 Location :: Volatile ,
4141 path!( "to_save_volatile" ) . into( ) ,
42- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
42+ Bytes :: from ( b"data" ) ,
4343 None
4444 ) ) ;
4545 syscall ! ( client1. write_file(
4646 Location :: Internal ,
4747 path!( "to_delete_internal" ) . into( ) ,
48- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
48+ Bytes :: from ( b"data" ) ,
4949 None ,
5050 ) ) ;
5151 syscall ! ( client1. write_file(
5252 Location :: External ,
5353 path!( "to_delete_external" ) . into( ) ,
54- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
54+ Bytes :: from ( b"data" ) ,
5555 None ,
5656 ) ) ;
5757 syscall ! ( client1. write_file(
5858 Location :: Volatile ,
5959 path!( "to_delete_volatile" ) . into( ) ,
60- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
60+ Bytes :: from ( b"data" ) ,
6161 None
6262 ) ) ;
6363
6464 syscall ! ( client2. write_file(
6565 Location :: Internal ,
6666 path!( "to_delete_internal" ) . into( ) ,
67- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
67+ Bytes :: from ( b"data" ) ,
6868 None ,
6969 ) ) ;
7070 syscall ! ( client2. write_file(
7171 Location :: External ,
7272 path!( "to_delete_external" ) . into( ) ,
73- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
73+ Bytes :: from ( b"data" ) ,
7474 None ,
7575 ) ) ;
7676 syscall ! ( client2. write_file(
7777 Location :: Volatile ,
7878 path!( "to_delete_volatile" ) . into( ) ,
79- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
79+ Bytes :: from ( b"data" ) ,
8080 None
8181 ) ) ;
8282
@@ -140,37 +140,37 @@ fn client_factory_reset() {
140140 syscall ! ( client1. write_file(
141141 Location :: Internal ,
142142 path!( "to_save_internal" ) . into( ) ,
143- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
143+ Bytes :: from ( b"data" ) ,
144144 None ,
145145 ) ) ;
146146 syscall ! ( client1. write_file(
147147 Location :: External ,
148148 path!( "to_save_external" ) . into( ) ,
149- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
149+ Bytes :: from ( b"data" ) ,
150150 None ,
151151 ) ) ;
152152 syscall ! ( client1. write_file(
153153 Location :: Volatile ,
154154 path!( "to_save_volatile" ) . into( ) ,
155- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
155+ Bytes :: from ( b"data" ) ,
156156 None
157157 ) ) ;
158158 syscall ! ( client2. write_file(
159159 Location :: Internal ,
160160 path!( "to_delete_internal" ) . into( ) ,
161- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
161+ Bytes :: from ( b"data" ) ,
162162 None ,
163163 ) ) ;
164164 syscall ! ( client2. write_file(
165165 Location :: External ,
166166 path!( "to_delete_external" ) . into( ) ,
167- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
167+ Bytes :: from ( b"data" ) ,
168168 None ,
169169 ) ) ;
170170 syscall ! ( client2. write_file(
171171 Location :: Volatile ,
172172 path!( "to_delete_volatile" ) . into( ) ,
173- Bytes :: try_from ( b"data" ) . unwrap ( ) ,
173+ Bytes :: from ( b"data" ) ,
174174 None
175175 ) ) ;
176176
0 commit comments