File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl TextRangeReplacementBuilder {
9191 if usize:: from ( original_range. len ( ) ) == replacement_text. len ( ) {
9292 // if the replacement text is the same length as the to-replace range,
9393 // we can just immediately apply the replacement.
94- let range: std:: ops:: Range < usize > = original_range. try_into ( ) . unwrap ( ) ;
94+ let range: std:: ops:: Range < usize > = original_range. into ( ) ;
9595 self . text . replace_range ( range, replacement_text) ;
9696 return ;
9797 }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ pub async fn check_sql(
6868 conn. execute ( & * search_path_query) . await ?;
6969 }
7070
71- let res = conn. prepare ( & replacement. text ( ) ) . await ;
71+ let res = conn. prepare ( replacement. text ( ) ) . await ;
7272
7373 match res {
7474 Ok ( _) => Ok ( None ) ,
You can’t perform that action at this time.
0 commit comments