@@ -13,30 +13,6 @@ pub struct PocketIcAdminInterface {
1313 base_url : Url ,
1414}
1515
16- #[ derive( Debug , Snafu ) ]
17- pub enum CreateInstanceError {
18- #[ snafu(
19- display( "failed to create PocketIC instance: {message}" ) ,
20- context( suffix( InstanceSnafu ) )
21- ) ]
22- Create { message : String } ,
23-
24- #[ snafu( transparent) ]
25- Reqwest { source : reqwest:: Error } ,
26- }
27-
28- #[ derive( Debug , Snafu ) ]
29- pub enum CreateHttpGatewayError {
30- #[ snafu(
31- display( "failed to create HTTP gateway: {message}" ) ,
32- context( suffix( GatewaySnafu ) )
33- ) ]
34- Create { message : String } ,
35-
36- #[ snafu( transparent, context( false ) ) ]
37- Reqwest { source : reqwest:: Error } ,
38- }
39-
4016impl PocketIcAdminInterface {
4117 pub fn new ( base_url : Url ) -> Self {
4218 let client = reqwest:: Client :: new ( ) ;
@@ -143,3 +119,27 @@ impl PocketIcAdminInterface {
143119 }
144120 }
145121}
122+
123+ #[ derive( Debug , Snafu ) ]
124+ pub enum CreateInstanceError {
125+ #[ snafu(
126+ display( "failed to create PocketIC instance: {message}" ) ,
127+ context( suffix( InstanceSnafu ) )
128+ ) ]
129+ Create { message : String } ,
130+
131+ #[ snafu( transparent) ]
132+ Reqwest { source : reqwest:: Error } ,
133+ }
134+
135+ #[ derive( Debug , Snafu ) ]
136+ pub enum CreateHttpGatewayError {
137+ #[ snafu(
138+ display( "failed to create HTTP gateway: {message}" ) ,
139+ context( suffix( GatewaySnafu ) )
140+ ) ]
141+ Create { message : String } ,
142+
143+ #[ snafu( transparent, context( false ) ) ]
144+ Reqwest { source : reqwest:: Error } ,
145+ }
0 commit comments