File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ fn upsert_with_no_changes_executes_do_nothing() {
233233 struct Changes {
234234 hair_color : Option < String > ,
235235 }
236-
236+ {
237237 let connection = connection_with_sean_and_tess_in_users_table ( ) ;
238238 let result = insert_into ( users:: table)
239239 . values ( & User :: new ( 1 , "Sean" ) )
@@ -243,7 +243,9 @@ fn upsert_with_no_changes_executes_do_nothing() {
243243 . execute ( & connection) ;
244244
245245 assert_eq ! ( Ok ( 0 ) , result) ;
246+ }
246247
248+ {
247249 // Try the same thing with an owned type.
248250 let connection = connection_with_sean_and_tess_in_users_table ( ) ;
249251 let result = insert_into ( users:: table)
@@ -254,6 +256,7 @@ fn upsert_with_no_changes_executes_do_nothing() {
254256 . execute ( & connection) ;
255257
256258 assert_eq ! ( Ok ( 0 ) , result) ;
259+ }
257260}
258261
259262#[ test]
You can’t perform that action at this time.
0 commit comments