File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rust-esp32-std-demo"
3
- version = " 0.26.0 "
3
+ version = " 0.26.1 "
4
4
authors = [" ivmarkov" ]
5
5
edition = " 2018"
6
6
categories = [" embedded" , " hardware-support" ]
Original file line number Diff line number Diff line change @@ -1216,7 +1216,8 @@ fn httpd_ulp_endpoints(
1216
1216
mutex : Arc < ( Mutex < Option < u32 > > , Condvar ) > ,
1217
1217
) -> Result < ( ) > {
1218
1218
use embedded_svc:: http:: server:: registry:: Registry ;
1219
- use embedded_svc:: http:: server:: Response ;
1219
+ use embedded_svc:: http:: server:: { Request , Response } ;
1220
+ use embedded_svc:: io:: adapters:: ToStd ;
1220
1221
1221
1222
server
1222
1223
. handle_get ( "/ulp" , |_req, resp| {
@@ -1239,7 +1240,7 @@ fn httpd_ulp_endpoints(
1239
1240
. handle_post ( "/ulp_start" , move |mut req, resp| {
1240
1241
let mut body = Vec :: new ( ) ;
1241
1242
1242
- ToStd ( req. into_reader ( ) ? ) . read_to_end ( & mut body) ?;
1243
+ ToStd :: new ( req. reader ( ) ) . read_to_end ( & mut body) ?;
1243
1244
1244
1245
let cycles = url:: form_urlencoded:: parse ( & body)
1245
1246
. filter ( |p| p. 0 == "cycles" )
You can’t perform that action at this time.
0 commit comments