File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl ConvWith for TextUnit {
65
65
fn conv_with ( self , line_index : & LineIndex ) -> Position {
66
66
let line_col = line_index. line_col ( self ) ;
67
67
// TODO: UTF-16
68
- Position :: new ( line_col. line as u64 , u32:: from ( line_col. col ) as u64 )
68
+ Position :: new ( u64 :: from ( line_col. line ) , u64 :: from ( u32:: from ( line_col. col ) ) )
69
69
}
70
70
}
71
71
@@ -192,7 +192,7 @@ impl TryConvWith for SourceChange {
192
192
. map ( |it| it. edits . as_slice ( ) )
193
193
. unwrap_or ( & [ ] ) ;
194
194
let line_col = translate_offset_with_edit ( & * line_index, pos. offset , edits) ;
195
- let position = Position :: new ( line_col. line as u64 , u32:: from ( line_col. col ) as u64 ) ;
195
+ let position = Position :: new ( u64 :: from ( line_col. line ) , u64 :: from ( u32:: from ( line_col. col ) ) ) ;
196
196
Some ( TextDocumentPositionParams {
197
197
text_document : TextDocumentIdentifier :: new ( pos. file_id . try_conv_with ( world) ?) ,
198
198
position,
You can’t perform that action at this time.
0 commit comments