strip whitespace for ignored tests reason comments

This commit is contained in:
Rémy Rakic 2024-08-11 15:02:13 +00:00
parent 62c8c693bd
commit 7963beda24

View File

@ -174,7 +174,7 @@ pub(super) fn handle_needs(
} else {
return IgnoreDecision::Ignore {
reason: if let Some(comment) = comment {
format!("{} ({comment})", need.ignore_reason)
format!("{} ({})", need.ignore_reason, comment.trim())
} else {
need.ignore_reason.into()
},