@@ -54,12 +54,9 @@ impl<'a> ProductionServiceBuilder<'a> {
54
54
match & self . config . operational_certificate_path {
55
55
Some ( operational_certificate_path) => {
56
56
let opcert: OpCert = OpCert :: from_file ( operational_certificate_path)
57
- . map_err ( |e| format ! ( "Could not decode operational certificate: {:?}" , e ) ) ?;
57
+ . map_err ( |e| format ! ( "Could not decode operational certificate: {e :?}" ) ) ?;
58
58
Ok ( opcert. compute_protocol_party_id ( ) . map_err ( |e| {
59
- format ! (
60
- "Could not compute party_id from operational certificate: {:?}" ,
61
- e
62
- )
59
+ format ! ( "Could not compute party_id from operational certificate: {e:?}" )
63
60
} ) ?)
64
61
}
65
62
_ => Ok ( self
@@ -95,7 +92,7 @@ impl<'a> ServiceBuilder for ProductionServiceBuilder<'a> {
95
92
async fn build ( & self ) -> Result < SignerServices , Box < dyn StdError > > {
96
93
if !self . config . data_stores_directory . exists ( ) {
97
94
fs:: create_dir_all ( self . config . data_stores_directory . clone ( ) )
98
- . map_err ( |e| format ! ( "Could not create data stores directory: {:?}" , e ) ) ?;
95
+ . map_err ( |e| format ! ( "Could not create data stores directory: {e :?}" ) ) ?;
99
96
}
100
97
101
98
let sqlite_db_path = Some ( self . config . get_sqlite_file ( ) ) ;
@@ -181,10 +178,10 @@ mod tests {
181
178
182
179
if test_dir. exists ( ) {
183
180
fs:: remove_dir_all ( & test_dir)
184
- . unwrap_or_else ( |_| panic ! ( "Could not remove dir {:?}" , test_dir ) ) ;
181
+ . unwrap_or_else ( |_| panic ! ( "Could not remove dir {test_dir :?}" ) ) ;
185
182
}
186
183
fs:: create_dir_all ( & test_dir)
187
- . unwrap_or_else ( |_| panic ! ( "Could not create dir {:?}" , test_dir ) ) ;
184
+ . unwrap_or_else ( |_| panic ! ( "Could not create dir {test_dir :?}" ) ) ;
188
185
189
186
test_dir
190
187
}
0 commit comments