Skip to content

Commit eecd7b2

Browse files
committed
feat: impl Default for TarantoolLogger
1 parent ce0ce18 commit eecd7b2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66
- `network::client::tcp::TcpStream` not supports async connection, provided with `connect_async` and `connect_timeout_async` methods
7+
- `impl Default for log::TarantoolLogger`
78

89
### Changed
910
- `error::Result` type alias now has another generic parameter E, which defaults

tarantool/src/log.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ impl TarantoolLogger {
5050
}
5151
}
5252

53+
impl Default for TarantoolLogger {
54+
#[inline(always)]
55+
fn default() -> Self {
56+
Self::new()
57+
}
58+
}
59+
5360
impl Log for TarantoolLogger {
5461
#[inline(always)]
5562
fn enabled(&self, metadata: &Metadata) -> bool {

0 commit comments

Comments
 (0)