🚨 clippy pass

main v0.1.6
_ 2021-12-09 18:22:23 +00:00
parent ed58df2e6b
commit ab42de5823
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
use crate::prelude::*;
pub const LOOKAROUND_VERSION: &'static str = env! ("CARGO_PKG_VERSION");
pub const LOOKAROUND_VERSION: &str = env! ("CARGO_PKG_VERSION");
pub fn find_project_dirs () -> Option <ProjectDirs> {
ProjectDirs::from ("", "ReactorScram", "LookAround")

View File

@ -250,7 +250,7 @@ fn get_peer_nickname (
peer_nickname: Option <String>
) -> Option <String>
{
match peer_nickname.as_ref ().map (String::as_str) {
match peer_nickname.as_deref () {
None => (),
Some ("") => (),
_ => return peer_nickname,