mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-11 12:48:47 +00:00
tweak canceled message
This commit is contained in:
parent
f1fafeee02
commit
b7d8bf1262
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ pub type Cancelable<T> = Result<T, Canceled>;
|
||||||
|
|
||||||
impl std::fmt::Display for Canceled {
|
impl std::fmt::Display for Canceled {
|
||||||
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
fmt.write_str("Canceled")
|
fmt.write_str("canceled")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -387,7 +387,7 @@ impl<'a> PoolDispatcher<'a> {
|
||||||
RawResponse::err(
|
RawResponse::err(
|
||||||
id,
|
id,
|
||||||
ErrorCode::ContentModified as i32,
|
ErrorCode::ContentModified as i32,
|
||||||
e.to_string(),
|
format!("content modified: {}", e),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
RawResponse::err(
|
RawResponse::err(
|
||||||
|
|
Loading…
Reference in a new issue