1
Fork 0

Fix failure note to_str implementation

* Serialize the level to something a little more useful for a failure note
  struct
* Update tests accordingly
This commit is contained in:
Afnan Enayet 2019-09-13 06:48:47 -07:00
parent 3287a65fc0
commit 02c1b892c1
No known key found for this signature in database
GPG key ID: 94EEFE1FD178056B
4 changed files with 12 additions and 9 deletions

View file

@ -833,7 +833,7 @@ impl Level {
Warning => "warning",
Note => "note",
Help => "help",
FailureNote => "",
FailureNote => "failure-note",
Cancelled => panic!("Shouldn't call on cancelled error"),
}
}