clippy: fix clippy warnings
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -9,30 +9,30 @@ impl Profile {
|
||||
}
|
||||
|
||||
pub fn name(&self) -> Option<&str> {
|
||||
return self.0["name"].as_str();
|
||||
self.0["name"].as_str()
|
||||
}
|
||||
|
||||
pub fn display_name(&self) -> Option<&str> {
|
||||
return self.0["display_name"].as_str();
|
||||
self.0["display_name"].as_str()
|
||||
}
|
||||
|
||||
pub fn lud06(&self) -> Option<&str> {
|
||||
return self.0["lud06"].as_str();
|
||||
self.0["lud06"].as_str()
|
||||
}
|
||||
|
||||
pub fn lud16(&self) -> Option<&str> {
|
||||
return self.0["lud16"].as_str();
|
||||
self.0["lud16"].as_str()
|
||||
}
|
||||
|
||||
pub fn about(&self) -> Option<&str> {
|
||||
return self.0["about"].as_str();
|
||||
self.0["about"].as_str()
|
||||
}
|
||||
|
||||
pub fn picture(&self) -> Option<&str> {
|
||||
return self.0["picture"].as_str();
|
||||
self.0["picture"].as_str()
|
||||
}
|
||||
|
||||
pub fn website(&self) -> Option<&str> {
|
||||
return self.0["website"].as_str();
|
||||
self.0["website"].as_str()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ pub struct PoolEvent<'a> {
|
||||
pub event: ewebsock::WsEvent,
|
||||
}
|
||||
|
||||
impl<'a> PoolEvent<'a> {
|
||||
impl PoolEvent<'_> {
|
||||
pub fn into_owned(self) -> PoolEventBuf {
|
||||
PoolEventBuf {
|
||||
relay: self.relay.to_owned(),
|
||||
|
||||
Reference in New Issue
Block a user