Fix clippy warning

This commit is contained in:
Brian Tarricone 2024-02-05 11:42:06 -08:00
parent 629e13710d
commit a7629a650a

View File

@ -41,10 +41,7 @@ pub fn build_gitlab_messages(event: &GitlabEvent) -> Vec<String> {
format!(
"\\[{}\\] {}*{}* {}",
project.path_with_namespace,
refname
.as_ref()
.map(|rn| format!("`{}` ", rn))
.unwrap_or_else(|| "".to_string()),
refname.as_ref().map(|rn| format!("`{}` ", rn)).unwrap_or_default(),
event.user(),
title,
)