File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#[ cfg( any(
22 target_os = "android" ,
33 target_os = "fuchsia" ,
4- target_os = "linux " ,
4+ target_os = "illumos " ,
55 target_os = "ios" ,
6- target_os = "visionos " ,
6+ target_os = "linux " ,
77 target_os = "macos" ,
8+ target_os = "solaris" ,
89 target_os = "tvos" ,
9- target_os = "watchos"
10+ target_os = "visionos" ,
11+ target_os = "watchos" ,
1012) ) ]
1113#[ tokio:: main]
1214async fn main ( ) -> wreq:: Result < ( ) > {
@@ -30,11 +32,13 @@ async fn main() -> wreq::Result<()> {
3032#[ cfg( not( any(
3133 target_os = "android" ,
3234 target_os = "fuchsia" ,
33- target_os = "linux " ,
35+ target_os = "illumos " ,
3436 target_os = "ios" ,
35- target_os = "visionos " ,
37+ target_os = "linux " ,
3638 target_os = "macos" ,
39+ target_os = "solaris" ,
3740 target_os = "tvos" ,
38- target_os = "watchos"
41+ target_os = "visionos" ,
42+ target_os = "watchos" ,
3943) ) ) ]
4044fn main ( ) { }
Original file line number Diff line number Diff line change 11use http:: Version ;
2- use wreq:: redirect:: Policy ;
32
43#[ tokio:: main]
54async fn main ( ) -> wreq:: Result < ( ) > {
@@ -9,7 +8,6 @@ async fn main() -> wreq::Result<()> {
98
109 let resp = wreq:: Client :: new ( )
1110 . get ( "https://tls.peet.ws/api/all" )
12- . redirect ( Policy :: default ( ) )
1311 . version ( Version :: HTTP_11 )
1412 . send ( )
1513 . await ?;
You can’t perform that action at this time.
0 commit comments