Address some FIXMEs

Signed-off-by: JmPotato <ghzpotato@gmail.com>
This commit is contained in:
JmPotato
2020-08-11 10:55:26 +08:00
parent b050937c10
commit dc6e1e0dac
6 changed files with 32 additions and 18 deletions

View File

@@ -864,7 +864,7 @@ pub(crate) fn handle_resolve_code_action(
let (id_string, index) = split_once(&params.id, ':').unwrap();
let index = index.parse::<usize>().unwrap();
let assist = &assists[index];
assert!(assist.assist.id.0 == id_string);
assert!(assist.assist.id().0 == id_string);
Ok(to_proto::resolved_code_action(&snap, assist.clone())?.edit)
}