parent
ed58df2e6b
commit
ab42de5823
|
@ -1,6 +1,6 @@
|
||||||
use crate::prelude::*;
|
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> {
|
pub fn find_project_dirs () -> Option <ProjectDirs> {
|
||||||
ProjectDirs::from ("", "ReactorScram", "LookAround")
|
ProjectDirs::from ("", "ReactorScram", "LookAround")
|
||||||
|
|
|
@ -250,7 +250,7 @@ fn get_peer_nickname (
|
||||||
peer_nickname: Option <String>
|
peer_nickname: Option <String>
|
||||||
) -> Option <String>
|
) -> Option <String>
|
||||||
{
|
{
|
||||||
match peer_nickname.as_ref ().map (String::as_str) {
|
match peer_nickname.as_deref () {
|
||||||
None => (),
|
None => (),
|
||||||
Some ("") => (),
|
Some ("") => (),
|
||||||
_ => return peer_nickname,
|
_ => return peer_nickname,
|
||||||
|
|
Loading…
Reference in New Issue