commitstatus: fixup formatting

This commit is contained in:
Graham Christensen 2020-03-31 17:25:53 -04:00
parent cf28b411f2
commit ea2f7cf474
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -47,7 +47,10 @@ impl<'a> CommitStatus<'a> {
pub fn set(&self, state: hubcaps::statuses::State) {
let desc = if self.description.len() >= 140 {
eprintln!("Warning: description is over 140 char; truncating: {:?}", &self.description);
eprintln!(
"Warning: description is over 140 char; truncating: {:?}",
&self.description
);
self.description.chars().take(140).collect()
} else {
self.description.clone()