Skip to content

Commit 8843588

Browse files
committed
Convert tests to text-size
1 parent b1d5817 commit 8843588

File tree

376 files changed

+26489
-26521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

376 files changed

+26489
-26521
lines changed

crates/ra_assists/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ mod tests {
308308
let before = "struct Foo { <|>bar: u32 }";
309309
let (before_cursor_pos, before) = extract_offset(before);
310310
let (db, file_id) = helpers::with_single_file(&before);
311-
let frange =
312-
FileRange { file_id, range: TextRange::offset_len(before_cursor_pos, 0.into()) };
311+
let frange = FileRange { file_id, range: TextRange::empty(before_cursor_pos) };
313312
let assists = resolved_assists(&db, frange);
314313
let mut assists = assists.iter();
315314

crates/ra_hir_def/src/body/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ mod tests {
194194
let (off, code) = extract_offset(code);
195195
let code = {
196196
let mut buf = String::new();
197-
let off = off.to_usize();
197+
let off: usize = off.into();
198198
buf.push_str(&code[..off]);
199199
buf.push_str("marker");
200200
buf.push_str(&code[off..]);

0 commit comments

Comments
 (0)