diff options
author | Sameer Puri <11097096+sameer@users.noreply.github.com> | 2018-12-31 16:37:03 -0500 |
---|---|---|
committer | Sameer Puri <11097096+sameer@users.noreply.github.com> | 2018-12-31 16:37:03 -0500 |
commit | 74245c7a9500be16d47a71753170bcc183c067db (patch) | |
tree | 97b46d413a57b841793b33e58d0f82d3d44aa717 /ipfs-api/src/request/log.rs | |
parent | 2704d2b28996808fe4d20138034e1af81ddc8b0e (diff) |
Fix clippy warnings
Diffstat (limited to 'ipfs-api/src/request/log.rs')
-rw-r--r-- | ipfs-api/src/request/log.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ipfs-api/src/request/log.rs b/ipfs-api/src/request/log.rs index 6f9ca49..5942b0f 100644 --- a/ipfs-api/src/request/log.rs +++ b/ipfs-api/src/request/log.rs @@ -25,11 +25,11 @@ impl Serialize for LoggingLevel { S: Serializer, { let s = match self { - &LoggingLevel::Debug => "debug", - &LoggingLevel::Info => "info", - &LoggingLevel::Warning => "warning", - &LoggingLevel::Error => "error", - &LoggingLevel::Critical => "critical", + LoggingLevel::Debug => "debug", + LoggingLevel::Info => "info", + LoggingLevel::Warning => "warning", + LoggingLevel::Error => "error", + LoggingLevel::Critical => "critical", }; serializer.serialize_str(s) @@ -47,8 +47,8 @@ impl<'a> Serialize for Logger<'a> { S: Serializer, { let s = match self { - &Logger::All => "*", - &Logger::Specific(ref logger) => logger.as_ref(), + Logger::All => "*", + Logger::Specific(ref logger) => logger.as_ref(), }; serializer.serialize_str(s) |