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!( format!(
"\\[{}\\] {}*{}* {}", "\\[{}\\] {}*{}* {}",
project.path_with_namespace, project.path_with_namespace,
refname refname.as_ref().map(|rn| format!("`{}` ", rn)).unwrap_or_default(),
.as_ref()
.map(|rn| format!("`{}` ", rn))
.unwrap_or_else(|| "".to_string()),
event.user(), event.user(),
title, title,
) )