Apply review suggestions

This commit is contained in:
vsrs
2021-03-11 17:39:41 +03:00
parent f234b80520
commit daa2637486
5 changed files with 11 additions and 18 deletions

View File

@@ -180,18 +180,11 @@ pub struct CargoRunnable {
pub enum RelatedTests {}
impl Request for RelatedTests {
type Params = RelatedTestsParams;
type Params = lsp_types::TextDocumentPositionParams;
type Result = Vec<TestInfo>;
const METHOD: &'static str = "rust-analyzer/relatedTests";
}
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct RelatedTestsParams {
#[serde(flatten)]
pub text_document_position: lsp_types::TextDocumentPositionParams,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct TestInfo {
pub runnable: Runnable,