Skip to content

Commit e199b4a

Browse files
committed
Apply clippy lint needless_lifetimes suggestions
1 parent 6a821e0 commit e199b4a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spdlog/src/formatter/json_formatter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn opt_to_num<T>(opt: Option<T>) -> usize {
1818

1919
struct JsonRecord<'a>(&'a Record<'a>);
2020

21-
impl<'a> Serialize for JsonRecord<'a> {
21+
impl Serialize for JsonRecord<'_> {
2222
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
2323
where
2424
S: serde::Serializer,

spdlog/src/formatter/local_time_cacher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ macro_rules! impl_cache_fields_str_getter {
120120
};
121121
}
122122

123-
impl<'a> TimeDate<'a> {
123+
impl TimeDate<'_> {
124124
#[must_use]
125125
pub(crate) fn full_second_str(&mut self) -> &str {
126126
if self.cached.full_second_str.is_none() {
@@ -327,7 +327,7 @@ pub(crate) struct TimeDateLazyLocked<'a> {
327327
locked: Option<TimeDateLocked<'a>>,
328328
}
329329

330-
impl<'a> TimeDateLazyLocked<'a> {
330+
impl TimeDateLazyLocked<'_> {
331331
#[must_use]
332332
pub(crate) fn new(time: SystemTime) -> Self {
333333
Self { time, locked: None }

spdlog/src/formatter/pattern_formatter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ impl Pattern for str {
461461
}
462462
}
463463

464-
impl<'a, T> Pattern for &'a T
464+
impl<T> Pattern for &T
465465
where
466466
T: ?Sized + Pattern,
467467
{

0 commit comments

Comments
 (0)