From affaf7700a86942f82e4cb25348c719bb928399a Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 2 Mar 2019 20:55:56 +0100 Subject: Represent unknown types as {unknown} instead of [unknown] Since the latter could actually be a real type... --- crates/ra_ide_api/src/hover.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide_api/src') diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs index 4722206e2..8ec60090d 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs @@ -474,7 +474,7 @@ mod tests { ); let type_name = analysis.type_of(range).unwrap().unwrap(); - assert_eq!("[unknown]", &type_name); + assert_eq!("{unknown}", &type_name); } #[test] -- cgit v1.2.3