Use correct error message casing for io::const_error
s
Error messages are supposed to start with lowercase letters, but a lot of `io::const_error` messages did not. This fixes them to start with a lowercase letter. I did consider adding a const check for this to the macro, but some of them start with proper nouns that make sense to uppercase them. See https://doc.rust-lang.org/1.85.0/std/error/trait.Error.html
This commit is contained in:
parent
2f581937e1
commit
cdef38812d
17 changed files with 75 additions and 75 deletions
|
@ -39,15 +39,15 @@ fn str_to_cdata(s: &str) -> String {
|
|||
|
||||
impl<T: Write> OutputFormatter for JunitFormatter<T> {
|
||||
fn write_discovery_start(&mut self) -> io::Result<()> {
|
||||
Err(io::const_error!(io::ErrorKind::NotFound, "Not yet implemented!"))
|
||||
Err(io::const_error!(io::ErrorKind::NotFound, "not yet implemented!"))
|
||||
}
|
||||
|
||||
fn write_test_discovered(&mut self, _desc: &TestDesc, _test_type: &str) -> io::Result<()> {
|
||||
Err(io::const_error!(io::ErrorKind::NotFound, "Not yet implemented!"))
|
||||
Err(io::const_error!(io::ErrorKind::NotFound, "not yet implemented!"))
|
||||
}
|
||||
|
||||
fn write_discovery_finish(&mut self, _state: &ConsoleTestDiscoveryState) -> io::Result<()> {
|
||||
Err(io::const_error!(io::ErrorKind::NotFound, "Not yet implemented!"))
|
||||
Err(io::const_error!(io::ErrorKind::NotFound, "not yet implemented!"))
|
||||
}
|
||||
|
||||
fn write_run_start(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue