Code Monkey home page Code Monkey logo

Comments (2)

Bechma avatar Bechma commented on May 26, 2024

Agree, I got the following error when trying to upgrade sqlx version to 0.7:

error[E0308]: mismatched types
   --> src/main.rs:17:36
    |
16  | async fn actix_web(
    |          --------- arguments to this function are incorrect
17  |     #[shuttle_shared_db::Postgres] pool: sqlx::PgPool,
    |                                    ^^^^ expected `Pool<sqlx::Postgres>`, found `Pool<Postgres>`
    |
    = note: `Pool<Postgres>` and `Pool<sqlx::Postgres>` have similar names, but are actually distinct types
note: `Pool<Postgres>` is defined in crate `sqlx_core`
   --> /home/ubuntu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/pool/mod.rs:244:1
    |
244 | pub struct Pool<DB: Database>(pub(crate) Arc<PoolInner<DB>>);
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `Pool<sqlx::Postgres>` is defined in crate `sqlx_core`
   --> /home/ubuntu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.1/src/pool/mod.rs:267:1
    |
267 | pub struct Pool<DB: Database>(pub(crate) Arc<PoolInner<DB>>);
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sqlx_core` are being used?
note: function defined here
   --> src/main.rs:16:10
    |
16  | async fn actix_web(
    |          ^^^^^^^^^
17  |     #[shuttle_shared_db::Postgres] pool: sqlx::PgPool,
    |                                    ------------------

from shuttle.

oddgrd avatar oddgrd commented on May 26, 2024

Thanks for opening this, we'll get on it this week!

from shuttle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.