1
Fork 0

Use correct error message casing for io::const_errors

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:
Noratrieb 2025-02-28 17:50:38 +01:00
parent 2f581937e1
commit cdef38812d
17 changed files with 75 additions and 75 deletions

View file

@ -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(