diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 65fa3cbfa4..0aca6f343b 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs @@ -15,7 +15,7 @@ pub type Cancelable = Result; impl std::fmt::Display for Canceled { fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - fmt.write_str("Canceled") + fmt.write_str("canceled") } } diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 1d6e3e5d60..afe0fec893 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -387,7 +387,7 @@ impl<'a> PoolDispatcher<'a> { RawResponse::err( id, ErrorCode::ContentModified as i32, - e.to_string(), + format!("content modified: {}", e), ) } else { RawResponse::err(