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

compile failed with rocket #11

Open
KunPengRen opened this issue Jul 4, 2022 · 1 comment
Open

compile failed with rocket #11

KunPengRen opened this issue Jul 4, 2022 · 1 comment

Comments

@KunPengRen
Copy link

error[E0308]: mismatched types
  --> src/common/manager.rs:12:57
   |
12 |   pub async fn run_manager() -> Result<(), rocket::Error> {
   |  _______________________________-------------------------_^
   | |                               |
   | |                               expected `Result<(), rocket::Error>` because of return type
13 | |     //     let mut my_config = Config::development();
14 | |     //     my_config.set_port(18001);
15 | |     let db: HashMap<Key, String> = HashMap::new();
...  |
51 | |         .await
52 | | }
   | |_^ expected `()`, found struct `Rocket`
   |
   = note: expected enum `Result<(), _>`
              found enum `Result<Rocket<Ignite>, _>`

Rustc version:

$ rustc --version                   
rustc 1.62.0-nightly (1f7fb6413 2022-04-10)
@raoufro
Copy link

raoufro commented Jul 29, 2022

I was trying to make the docker image, but I had the same issue when it was compiling the source code.

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

Successfully merging a pull request may close this issue.

2 participants