diff options
author | Kirill Bulatov <[email protected]> | 2019-12-19 14:43:41 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2019-12-19 14:43:41 +0000 |
commit | 4ed78f80f4cc3cf32681fce6722293da6c8df76d (patch) | |
tree | 217f9900f114bdb2298a3c29ab16747d53805ebe /crates/ra_ide/src/lib.rs | |
parent | 4fb25ef43bd96da94467ffa4de8fbf0af82b28d1 (diff) |
Remove TruncateOptions struct
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r-- | crates/ra_ide/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 875919e60..779a81b2c 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs | |||
@@ -349,10 +349,8 @@ impl Analysis { | |||
349 | file_id: FileId, | 349 | file_id: FileId, |
350 | max_inlay_hint_length: Option<usize>, | 350 | max_inlay_hint_length: Option<usize>, |
351 | ) -> Cancelable<Vec<InlayHint>> { | 351 | ) -> Cancelable<Vec<InlayHint>> { |
352 | let truncate_options = | ||
353 | hir::TruncateOptions { max_length: max_inlay_hint_length, show_default_types: false }; | ||
354 | self.with_db(|db| { | 352 | self.with_db(|db| { |
355 | inlay_hints::inlay_hints(db, file_id, &db.parse(file_id).tree(), &truncate_options) | 353 | inlay_hints::inlay_hints(db, file_id, &db.parse(file_id).tree(), max_inlay_hint_length) |
356 | }) | 354 | }) |
357 | } | 355 | } |
358 | 356 | ||