File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,7 @@ pub struct PostgreSQL {
5858impl PostgreSQL {
5959 /// Create a new [`PostgreSQL`] instance
6060 pub fn new ( version : Version , settings : Settings ) -> Self {
61- let mut postgresql = PostgreSQL {
62- version,
63- settings,
64- } ;
61+ let mut postgresql = PostgreSQL { version, settings } ;
6562
6663 // If the minor and release version are set, append the version to the installation directory
6764 // to avoid conflicts with other versions. This will also facilitate setting the status
@@ -229,9 +226,7 @@ impl PostgreSQL {
229226 ) ;
230227 Ok ( ( ) )
231228 }
232- Err ( error) => {
233- Err ( DatabaseInitializationError ( error. into ( ) ) )
234- }
229+ Err ( error) => Err ( DatabaseInitializationError ( error. into ( ) ) ) ,
235230 }
236231 }
237232
@@ -267,9 +262,7 @@ impl PostgreSQL {
267262 ) ;
268263 Ok ( ( ) )
269264 }
270- Err ( error) => {
271- Err ( DatabaseStartError ( error. into ( ) ) )
272- }
265+ Err ( error) => Err ( DatabaseStartError ( error. into ( ) ) ) ,
273266 }
274267 }
275268
@@ -294,9 +287,7 @@ impl PostgreSQL {
294287 ) ;
295288 Ok ( ( ) )
296289 }
297- Err ( error) => {
298- Err ( DatabaseStopError ( error. into ( ) ) )
299- }
290+ Err ( error) => Err ( DatabaseStopError ( error. into ( ) ) ) ,
300291 }
301292 }
302293
You can’t perform that action at this time.
0 commit comments