Skip to content

Commit a672bef

Browse files
committed
chore: add Debug trait to CommandBuilder
1 parent e44ac9b commit a672bef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

postgresql_embedded/src/command/traits.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
use crate::error::Result;
22
use std::ffi::{OsStr, OsString};
3+
use std::fmt::Debug;
34
use std::path::PathBuf;
45
use std::time::Duration;
56
use 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>,

0 commit comments

Comments
 (0)