Fix clippy warning
This commit is contained in:
parent
629e13710d
commit
a7629a650a
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user