Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: launchbadge/sqlx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: blowfishxyz/sqlx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Mar 18, 2024

  1. Copy the full SHA
    88eb8dd View commit details
Showing with 10 additions and 10 deletions.
  1. +8 −8 Cargo.lock
  2. +2 −2 sqlx-macros-core/src/test_attr.rs
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sqlx-macros-core/src/test_attr.rs
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ fn expand_advanced(args: syn::AttributeArgs, input: syn::ItemFn) -> crate::Resul
#[::core::prelude::v1::test]
#(#attrs)*
fn #name() #ret {
async fn inner(#inputs) #ret {
async fn #name(#inputs) #ret {
#body
}

@@ -121,7 +121,7 @@ fn expand_advanced(args: syn::AttributeArgs, input: syn::ItemFn) -> crate::Resul
args.fixtures(&[#(#fixtures),*]);

// We need to give a coercion site or else we get "unimplemented trait" errors.
let f: fn(#(#fn_arg_types),*) -> _ = inner;
let f: fn(#(#fn_arg_types),*) -> _ = #name;

::sqlx::testing::TestFn::run_test(f, args)
}