Skip to content

Commit 3b32952

Browse files
committed
Support array in gather_args.
Close #382.
1 parent a0f7e0d commit 3b32952

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/languageclient.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ pub trait ILanguageClient: IVim {
1111
map: &Option<Params>,
1212
) -> Result<T> {
1313
let mut map = match *map {
14-
None | Some(Params::None) => serde_json::map::Map::new(),
15-
Some(Params::Array(_)) => bail!("Params should be dict!"),
14+
None | Some(Params::None) | Some(Params::Array(_)) => serde_json::map::Map::new(),
1615
Some(Params::Map(ref map)) => map.clone(),
1716
};
1817
let mut keys_request = vec![];

0 commit comments

Comments
 (0)