Skip to content

Commit b88513d

Browse files
author
Seulgi Kim
committed
Use the placeholders for elided lifetimes
1 parent 8d9787c commit b88513d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

client/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::thread;
1212
use std::time::Duration;
1313
use ws::connect;
1414

15-
pub fn run(args: &ClientArgs) {
15+
pub fn run(args: &ClientArgs<'_>) {
1616
logger_init().expect("Logger should be initialized");
1717

1818
let count = Rc::new(Cell::new(0));

client/src/logger/logger.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ impl Logger {
2929
}
3030

3131
impl Log for Logger {
32-
fn enabled(&self, metadata: &Metadata) -> bool {
32+
fn enabled(&self, metadata: &Metadata<'_>) -> bool {
3333
self.filter.enabled(metadata)
3434
}
3535

36-
fn log(&self, record: &Record) {
36+
fn log(&self, record: &Record<'_>) {
3737
if self.filter.matches(record) {
3838
let thread_name = thread::current().name().unwrap_or_default().to_string();
3939
let timestamp = time::strftime("%Y-%m-%d %H:%M:%S %Z", &time::now()).unwrap();

client/src/process/rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub enum CallRPCError {
2020
}
2121

2222
impl ::std::fmt::Display for CallRPCError {
23-
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
23+
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
2424
match self {
2525
CallRPCError::Serde(err) => err.fmt(f),
2626
CallRPCError::Io(err) => err.fmt(f),

server/src/logger/logger.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ impl Logger {
2929
}
3030

3131
impl Log for Logger {
32-
fn enabled(&self, metadata: &Metadata) -> bool {
32+
fn enabled(&self, metadata: &Metadata<'_>) -> bool {
3333
self.filter.enabled(metadata)
3434
}
3535

36-
fn log(&self, record: &Record) {
36+
fn log(&self, record: &Record<'_>) {
3737
if self.filter.matches(record) {
3838
let thread_name = thread::current().name().unwrap_or_default().to_string();
3939
let timestamp = time::strftime("%Y-%m-%d %H:%M:%S %Z", &time::now()).unwrap();

0 commit comments

Comments
 (0)