diff options
author | Florian Diebold <[email protected]> | 2019-03-02 19:55:56 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-03-03 02:00:17 +0000 |
commit | affaf7700a86942f82e4cb25348c719bb928399a (patch) | |
tree | e8d4dfba9b06be10a00c6ccef42f0fce6fe4d9a2 /crates/ra_ide_api/src | |
parent | b7fdad8448cbd3a94c2cb877a1d209f3182ca0d5 (diff) |
Represent unknown types as {unknown} instead of [unknown]
Since the latter could actually be a real type...
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
474 | ); | 474 | ); |
475 | 475 | ||
476 | let type_name = analysis.type_of(range).unwrap().unwrap(); | 476 | let type_name = analysis.type_of(range).unwrap().unwrap(); |
477 | assert_eq!("[unknown]", &type_name); | 477 | assert_eq!("{unknown}", &type_name); |
478 | } | 478 | } |
479 | 479 | ||
480 | #[test] | 480 | #[test] |