File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -224,16 +224,15 @@ CREATE TABLE IF NOT EXISTS _sqlx_migrations (
224224
225225 let elapsed = start. elapsed ( ) ;
226226
227+ #[ allow( clippy:: cast_possible_truncation) ]
227228 let _ = query (
228229 r#"
229230 UPDATE _sqlx_migrations
230231 SET execution_time = ?
231232 WHERE version = ?
232233 "# ,
233234 )
234- // Unlikely unless the execution time exceeds ~292 years,
235- // then we're probably okay losing that information.
236- . bind ( i64:: try_from ( elapsed. as_nanos ( ) ) . ok ( ) )
235+ . bind ( elapsed. as_nanos ( ) as i64 )
237236 . bind ( migration. version )
238237 . execute ( self )
239238 . await ?;
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ CREATE TABLE IF NOT EXISTS _sqlx_migrations (
168168 let elapsed = start. elapsed ( ) ;
169169
170170 // language=SQL
171+ #[ allow( clippy:: cast_possible_truncation) ]
171172 let _ = query (
172173 r#"
173174 UPDATE _sqlx_migrations
You can’t perform that action at this time.
0 commit comments