diff options
author | Aleksey Kladov <[email protected]> | 2020-04-24 22:51:02 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-25 10:59:18 +0100 |
commit | 8843588fca7a6022b86800d5d2539594c0de93cf (patch) | |
tree | 3c5162068377dbd53dbf40b602baeeed7aa82285 /crates/ra_hir_def | |
parent | b1d5817dd18b7b5fc102a63b084b1ee7ff4f9996 (diff) |
Convert tests to text-size
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/body/scope.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body/scope.rs b/crates/ra_hir_def/src/body/scope.rs index 5b36a7cc1..86f953c80 100644 --- a/crates/ra_hir_def/src/body/scope.rs +++ b/crates/ra_hir_def/src/body/scope.rs | |||
@@ -194,7 +194,7 @@ mod tests { | |||
194 | let (off, code) = extract_offset(code); | 194 | let (off, code) = extract_offset(code); |
195 | let code = { | 195 | let code = { |
196 | let mut buf = String::new(); | 196 | let mut buf = String::new(); |
197 | let off = off.to_usize(); | 197 | let off: usize = off.into(); |
198 | buf.push_str(&code[..off]); | 198 | buf.push_str(&code[..off]); |
199 | buf.push_str("marker"); | 199 | buf.push_str("marker"); |
200 | buf.push_str(&code[off..]); | 200 | buf.push_str(&code[off..]); |