Skip to content

Commit c39da45

Browse files
authored
feat(server): implement Default for server auto connection Builder (#183)
1 parent 8610b18 commit c39da45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/server/conn/auto/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ pub struct Builder<E> {
6666
_executor: E,
6767
}
6868

69+
impl<E: Default> Default for Builder<E> {
70+
fn default() -> Self {
71+
Self::new(E::default())
72+
}
73+
}
74+
6975
impl<E> Builder<E> {
7076
/// Create a new auto connection builder.
7177
///

0 commit comments

Comments
 (0)