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!(
|
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,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user