@@ -639,7 +639,7 @@ async fn issue_1467() -> anyhow::Result<()> {
639
639
640
640
// Random seed:
641
641
let seed: [ u8 ; 32 ] = rand:: random ( ) ;
642
- println ! ( "RNG seed: {}" , hex:: encode( & seed) ) ;
642
+ println ! ( "RNG seed: {}" , hex:: encode( seed) ) ;
643
643
644
644
// Pre-determined seed:
645
645
// let mut seed: [u8; 32] = [0u8; 32];
@@ -734,7 +734,7 @@ async fn test_query_with_progress_handler() -> anyhow::Result<()> {
734
734
let mut conn = new :: < Sqlite > ( ) . await ?;
735
735
736
736
// Using this string as a canary to ensure the callback doesn't get called with the wrong data pointer.
737
- let state = format ! ( "test" ) ;
737
+ let state = "test" . to_string ( ) ;
738
738
conn. lock_handle ( ) . await ?. set_progress_handler ( 1 , move || {
739
739
assert_eq ! ( state, "test" ) ;
740
740
false
@@ -802,7 +802,7 @@ async fn test_query_with_update_hook() -> anyhow::Result<()> {
802
802
let mut conn = new :: < Sqlite > ( ) . await ?;
803
803
static CALLED : AtomicBool = AtomicBool :: new ( false ) ;
804
804
// Using this string as a canary to ensure the callback doesn't get called with the wrong data pointer.
805
- let state = format ! ( "test" ) ;
805
+ let state = "test" . to_string ( ) ;
806
806
conn. lock_handle ( ) . await ?. set_update_hook ( move |result| {
807
807
assert_eq ! ( state, "test" ) ;
808
808
assert_eq ! ( result. operation, SqliteOperation :: Insert ) ;
@@ -858,7 +858,7 @@ async fn test_query_with_commit_hook() -> anyhow::Result<()> {
858
858
let mut conn = new :: < Sqlite > ( ) . await ?;
859
859
static CALLED : AtomicBool = AtomicBool :: new ( false ) ;
860
860
// Using this string as a canary to ensure the callback doesn't get called with the wrong data pointer.
861
- let state = format ! ( "test" ) ;
861
+ let state = "test" . to_string ( ) ;
862
862
conn. lock_handle ( ) . await ?. set_commit_hook ( move || {
863
863
CALLED . store ( true , Ordering :: Relaxed ) ;
864
864
assert_eq ! ( state, "test" ) ;
@@ -920,7 +920,7 @@ async fn test_query_with_rollback_hook() -> anyhow::Result<()> {
920
920
let mut conn = new :: < Sqlite > ( ) . await ?;
921
921
922
922
// Using this string as a canary to ensure the callback doesn't get called with the wrong data pointer.
923
- let state = format ! ( "test" ) ;
923
+ let state = "test" . to_string ( ) ;
924
924
static CALLED : AtomicBool = AtomicBool :: new ( false ) ;
925
925
conn. lock_handle ( ) . await ?. set_rollback_hook ( move || {
926
926
assert_eq ! ( state, "test" ) ;
@@ -977,7 +977,7 @@ async fn test_query_with_preupdate_hook_insert() -> anyhow::Result<()> {
977
977
let mut conn = new :: < Sqlite > ( ) . await ?;
978
978
static CALLED : AtomicBool = AtomicBool :: new ( false ) ;
979
979
// Using this string as a canary to ensure the callback doesn't get called with the wrong data pointer.
980
- let state = format ! ( "test" ) ;
980
+ let state = "test" . to_string ( ) ;
981
981
conn. lock_handle ( ) . await ?. set_preupdate_hook ( {
982
982
move |result| {
983
983
assert_eq ! ( state, "test" ) ;
@@ -1030,7 +1030,7 @@ async fn test_query_with_preupdate_hook_delete() -> anyhow::Result<()> {
1030
1030
. await ?;
1031
1031
static CALLED : AtomicBool = AtomicBool :: new ( false ) ;
1032
1032
// Using this string as a canary to ensure the callback doesn't get called with the wrong data pointer.
1033
- let state = format ! ( "test" ) ;
1033
+ let state = "test" . to_string ( ) ;
1034
1034
conn. lock_handle ( ) . await ?. set_preupdate_hook ( move |result| {
1035
1035
assert_eq ! ( state, "test" ) ;
1036
1036
assert_eq ! ( result. operation, SqliteOperation :: Delete ) ;
@@ -1077,7 +1077,7 @@ async fn test_query_with_preupdate_hook_update() -> anyhow::Result<()> {
1077
1077
static CALLED : AtomicBool = AtomicBool :: new ( false ) ;
1078
1078
let sqlite_value_stored: Arc < std:: sync:: Mutex < Option < _ > > > = Default :: default ( ) ;
1079
1079
// Using this string as a canary to ensure the callback doesn't get called with the wrong data pointer.
1080
- let state = format ! ( "test" ) ;
1080
+ let state = "test" . to_string ( ) ;
1081
1081
conn. lock_handle ( ) . await ?. set_preupdate_hook ( {
1082
1082
let sqlite_value_stored = sqlite_value_stored. clone ( ) ;
1083
1083
move |result| {
0 commit comments