Skip to content

Commit 240cd21

Browse files
committed
style: Make clippy happy
1 parent da7ff82 commit 240cd21

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/fmt/humantime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl fmt::Debug for Timestamp {
8585
/// A `Debug` wrapper for `Timestamp` that uses the `Display` implementation.
8686
struct TimestampValue<'a>(&'a Timestamp);
8787

88-
impl<'a> fmt::Debug for TimestampValue<'a> {
88+
impl fmt::Debug for TimestampValue<'_> {
8989
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9090
fmt::Display::fmt(&self.0, f)
9191
}

src/fmt/kv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn default_kv_format(formatter: &mut Formatter, fields: &dyn Source) -> io::
4141

4242
struct DefaultVisitSource<'a>(&'a mut Formatter);
4343

44-
impl<'a, 'kvs> VisitSource<'kvs> for DefaultVisitSource<'a> {
44+
impl<'kvs> VisitSource<'kvs> for DefaultVisitSource<'_> {
4545
fn visit_pair(&mut self, key: Key<'_>, value: Value<'kvs>) -> Result<(), Error> {
4646
write!(self.0, " {}={}", self.style_key(key), value)?;
4747
Ok(())

src/fmt/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ struct DefaultFormat<'a> {
317317
kv_format: &'a KvFormatFn,
318318
}
319319

320-
impl<'a> DefaultFormat<'a> {
320+
impl DefaultFormat<'_> {
321321
fn write(mut self, record: &Record<'_>) -> io::Result<()> {
322322
self.write_timestamp()?;
323323
self.write_level(record)?;
@@ -454,7 +454,7 @@ impl<'a> DefaultFormat<'a> {
454454
indent_count: usize,
455455
}
456456

457-
impl<'a, 'b> Write for IndentWrapper<'a, 'b> {
457+
impl Write for IndentWrapper<'_, '_> {
458458
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
459459
let mut first = true;
460460
for chunk in buf.split(|&x| x == b'\n') {

src/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ where
806806
}
807807
}
808808

809-
impl<'a> Default for Env<'a> {
809+
impl Default for Env<'_> {
810810
fn default() -> Self {
811811
Env {
812812
filter: Var::new(DEFAULT_FILTER_ENV),

0 commit comments

Comments
 (0)