From fcf5bbbbeb1ab48e80d45483c810bae708f848a1 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 3 Feb 2020 13:35:14 +0200 Subject: Fix inlay hints test snippet compilation --- crates/ra_ide/src/inlay_hints.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/inlay_hints.rs b/crates/ra_ide/src/inlay_hints.rs index 393ca9447..de447a5aa 100644 --- a/crates/ra_ide/src/inlay_hints.rs +++ b/crates/ra_ide/src/inlay_hints.rs @@ -376,7 +376,7 @@ fn main() { let mut start = 0; (0..2).for_each(|increment| { start += increment; - }) + }); let multiply = |a, b, c, d| a * b * c * d; let _: i32 = multiply(1, 2, 3, 4); @@ -399,37 +399,37 @@ fn main() { label: "i32", }, InlayHint { - range: [114; 122), + range: [115; 123), kind: TypeHint, label: "|…| -> i32", }, InlayHint { - range: [126; 127), + range: [127; 128), kind: TypeHint, label: "i32", }, InlayHint { - range: [129; 130), + range: [130; 131), kind: TypeHint, label: "i32", }, InlayHint { - range: [132; 133), + range: [133; 134), kind: TypeHint, label: "i32", }, InlayHint { - range: [135; 136), + range: [136; 137), kind: TypeHint, label: "i32", }, InlayHint { - range: [200; 212), + range: [201; 213), kind: TypeHint, label: "&|…| -> i32", }, InlayHint { - range: [235; 244), + range: [236; 245), kind: TypeHint, label: "|| -> i32", }, -- cgit v1.2.3