Skip to content

Commit d43a27a

Browse files
author
8192K
committed
Cosmetics
1 parent 8b8d724 commit d43a27a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! # Lib Module
1+
//! # Redis Logger
22
//!
33
//! This module provides a logger implementation that logs messages to Redis using the `log` crate's `Log` trait.
44
//!
@@ -69,7 +69,7 @@ pub struct DummyPubSubEncoder {
6969

7070
#[doc(hidden)]
7171
impl PubSubEncoder for DummyPubSubEncoder {
72-
fn encode(&self, _record: &Record<'_>) -> Vec<u8> {
72+
fn encode(&self, _record: &Record) -> Vec<u8> {
7373
panic!()
7474
}
7575
}
@@ -83,7 +83,7 @@ pub struct DummyStreamEncoder {
8383

8484
#[doc(hidden)]
8585
impl StreamEncoder for DummyStreamEncoder {
86-
fn encode(&self, _record: &Record<'_>) -> Vec<(&'static str, Vec<u8>)> {
86+
fn encode(&self, _record: &Record) -> Vec<(&'static str, Vec<u8>)> {
8787
panic!()
8888
}
8989
}
@@ -206,7 +206,9 @@ where
206206
///
207207
/// Panics if the channels or streams vectors are empty when building the `RedisLoggerConfig`.
208208
#[derive(Debug)]
209-
pub struct RedisLoggerConfigBuilder;
209+
pub struct RedisLoggerConfigBuilder {
210+
__private: PhantomData<()>,
211+
}
210212

211213
impl RedisLoggerConfigBuilder {
212214
/// Constructs a `RedisLoggerConfig` with a given connection, channels, and a Pub/Sub encoder.

0 commit comments

Comments
 (0)