Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build master branch #153

Closed
sevenzing opened this issue May 3, 2024 · 1 comment
Closed

Cannot build master branch #153

sevenzing opened this issue May 3, 2024 · 1 comment

Comments

@sevenzing
Copy link

sevenzing commented May 3, 2024

trying to use latest version in my project and trying to build master branch results in compile error:

> cargo build                                        
   Compiling fang v0.11.0-rc1 (./fang/fang)
error[E0432]: unresolved import `sqlx::any`
  --> fang/src/asynk/async_queue.rs:16:11
   |
16 | use sqlx::any::AnyConnectOptions;
   |           ^^^ could not find `any` in `sqlx`

error[E0432]: unresolved import `sqlx::any`
  --> fang/src/asynk/async_queue.rs:17:11
   |
17 | use sqlx::any::AnyKind;
   |           ^^^ could not find `any` in `sqlx`

error[E0432]: unresolved import `sqlx::any`
 --> fang/src/asynk/backend_sqlx.rs:4:11
  |
4 | use sqlx::any::AnyQueryResult;
  |           ^^^ could not find `any` in `sqlx`

error[E0282]: type annotations needed
   --> fang/src/asynk/backend_sqlx.rs:343:14
    |
343 |             .into()
    |              ^^^^
    |
help: try using a fully qualified path to specify the expected types
    |
340 ~         Ok(<<DB as sqlx::Database>::QueryResult as Into<T>>::into(sqlx::query(query)
341 |             .execute(pool)
342 ~             .await?)
    |

error[E0282]: type annotations needed
   --> fang/src/asynk/backend_sqlx.rs:360:14
    |
360 |             .into()
    |              ^^^^
    |
help: try using a fully qualified path to specify the expected types
    |
356 ~         Ok(<<DB as sqlx::Database>::QueryResult as Into<T>>::into(sqlx::query(query)
357 |             .bind(now)
358 |             .execute(pool)
359 ~             .await?)
    |

error[E0282]: type annotations needed
   --> fang/src/asynk/backend_sqlx.rs:375:14
    |
375 |             .into()
    |              ^^^^
    |
help: try using a fully qualified path to specify the expected types
    |
371 ~         let result = <<DB as sqlx::Database>::QueryResult as Into<T>>::into(sqlx::query(query)
372 |             .bind(uuid)
373 |             .execute(pool)
374 ~             .await?)
    |

error[E0282]: type annotations needed
   --> fang/src/asynk/backend_sqlx.rs:401:14
    |
401 |             .into()
    |              ^^^^
    |
help: try using a fully qualified path to specify the expected types
    |
397 ~         Ok(<<DB as sqlx::Database>::QueryResult as Into<T>>::into(sqlx::query(query)
398 |             .bind(uniq_hash)
399 |             .execute(pool)
400 ~             .await?)
    |

error[E0282]: type annotations needed
   --> fang/src/asynk/backend_sqlx.rs:416:14
    |
416 |             .into()
    |              ^^^^
    |
help: try using a fully qualified path to specify the expected types
    |
412 ~         Ok(<<DB as sqlx::Database>::QueryResult as Into<T>>::into(sqlx::query(query)
413 |             .bind(task_type)
414 |             .execute(pool)
415 ~             .await?)
    |

Some errors have detailed explanations: E0282, E0432.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `fang` (lib) due to 8 previous errors
@pxp9
Copy link
Collaborator

pxp9 commented Oct 14, 2024

#157

@pxp9 pxp9 closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants