File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
postgresql_embedded/src/command Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11use crate :: error:: Result ;
22use std:: ffi:: { OsStr , OsString } ;
3+ use std:: fmt:: Debug ;
34use std:: path:: PathBuf ;
45use std:: time:: Duration ;
56use tracing:: debug;
67
78/// Trait to build a command
8- pub trait CommandBuilder {
9+ pub trait CommandBuilder : Debug {
910 /// Get the program name
1011 fn get_program ( & self ) -> & ' static OsStr ;
1112
@@ -151,6 +152,7 @@ mod test {
151152
152153 #[ test]
153154 fn test_command_builder_defaults ( ) {
155+ #[ derive( Debug ) ]
154156 struct DefaultCommandBuilder {
155157 program_dir : Option < PathBuf > ,
156158 }
@@ -171,6 +173,7 @@ mod test {
171173 assert_eq ! ( r#""test""# , command. to_command_string( ) ) ;
172174 }
173175
176+ #[ derive( Debug ) ]
174177 struct TestCommandBuilder {
175178 program_dir : Option < PathBuf > ,
176179 args : Vec < OsString > ,
You can’t perform that action at this time.
0 commit comments