@@ -139,7 +139,7 @@ impl StacksDevnetConfig {
139139
140140 let yaml_str = match serde_yaml:: to_string ( & network_config) {
141141 Ok ( s) => Ok ( s) ,
142- Err ( e) => Err ( format ! ( "failed to parse devnet config: {}" , e ) ) ,
142+ Err ( e) => Err ( format ! ( "failed to parse devnet config: {e}" ) ) ,
143143 } ?;
144144
145145 Ok ( ( yaml_str, devnet_config) )
@@ -151,7 +151,7 @@ impl StacksDevnetConfig {
151151 project_manifest. project . cache_location =
152152 FileLocation :: from_path ( PathBuf :: from ( CONTRACT_DIR ) ) ;
153153 serde_yaml:: to_string ( & project_manifest)
154- . map_err ( |e| format ! ( "failed to parse project manifest: {}" , e ) )
154+ . map_err ( |e| format ! ( "failed to parse project manifest: {e}" ) )
155155 }
156156
157157 pub fn get_deployment_plan_yaml_string ( & self ) -> Result < String , String > {
@@ -176,7 +176,7 @@ impl StacksDevnetConfig {
176176 }
177177 }
178178 serde_yaml:: to_string ( & self . deployment_plan )
179- . map_err ( |e| format ! ( "failed to parse deployment plan config: {}" , e ) )
179+ . map_err ( |e| format ! ( "failed to parse deployment plan config: {e}" ) )
180180 }
181181}
182182
@@ -199,12 +199,12 @@ mod tests {
199199
200200 fn read_file ( file_path : & str ) -> Vec < u8 > {
201201 let file = File :: open ( file_path)
202- . unwrap_or_else ( |e| panic ! ( "unable to read file {}\n {:?}" , file_path , e ) ) ;
202+ . unwrap_or_else ( |e| panic ! ( "unable to read file {file_path }\n {e :?}" ) ) ;
203203 let mut file_reader = BufReader :: new ( file) ;
204204 let mut file_buffer = vec ! [ ] ;
205205 file_reader
206206 . read_to_end ( & mut file_buffer)
207- . unwrap_or_else ( |e| panic ! ( "unable to read file {}\n {:?}" , file_path , e ) ) ;
207+ . unwrap_or_else ( |e| panic ! ( "unable to read file {file_path }\n {e :?}" ) ) ;
208208 file_buffer
209209 }
210210
@@ -215,7 +215,7 @@ mod tests {
215215 let config_file: StacksDevnetConfig = match serde_json:: from_slice ( & file_buffer) {
216216 Ok ( s) => s,
217217 Err ( e) => {
218- panic ! ( "Config file malformatted {}" , e ) ;
218+ panic ! ( "Config file malformatted {e}" ) ;
219219 }
220220 } ;
221221 config_file
@@ -291,7 +291,7 @@ mod tests {
291291 }
292292 Err ( e) => {
293293 assert_eq ! ( e. code, 400 ) ;
294- assert_eq ! ( e. message, format!( "failed to validate config for NAMESPACE: {}, ERROR: devnet namespace must match authenticated user id" , namespace ) ) ;
294+ assert_eq ! ( e. message, format!( "failed to validate config for NAMESPACE: {namespace }, ERROR: devnet namespace must match authenticated user id" ) ) ;
295295 }
296296 }
297297 }
0 commit comments