Skip to content

App won't compile #12

Description

@smiller171

I'm getting errors from the Rust compiler and I don't know enough about Rust to troubleshoot.

Error Output:
27.91 warning: unused import: `path::PathBuf`
27.91   --> src/main.rs:26:28
27.91    |
27.91 26 | use std::{net::SocketAddr, path::PathBuf};
27.91    |                            ^^^^^^^^^^^^^
27.91    |
27.91    = note: `#[warn(unused_imports)]` on by default
27.91 
28.69 error[E0308]: mismatched types
28.69     --> src/main.rs:229:28
28.69      |
28.69 229  |         run_profiles_query(&arc, Duration::from_secs(60 * 10))
28.69      |         ------------------ ^^^^ expected `&RwLock<ServerConfigInstance>`, found `&Arc<ServerConfigWrapper>`
28.69      |         |
28.69      |         arguments to this function are incorrect
28.69      |
28.69      = note: expected reference `&tokio::sync::RwLock<ServerConfigInstance>`
28.69                 found reference `&Arc<ServerConfigWrapper>`
28.69 note: function defined here
28.69     --> src/main.rs:1739:10
28.69      |
28.69 1739 | async fn run_profiles_query(
28.69      |          ^^^^^^^^^^^^^^^^^^
28.69 1740 |     sc_mutex: &RwLock<ServerConfigInstance>,
28.69      |     ---------------------------------------
28.69 
28.69 error[E0308]: mismatched types
28.69     --> src/main.rs:248:40
28.69      |
28.69 248  |                     run_profiles_query(&update_profiles_task_arc, Duration::from_secs(60 * 10))
28.69      |                     ------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&RwLock<ServerConfigInstance>`, found `&Arc<ServerConfigWrapper>`
28.69      |                     |
28.69      |                     arguments to this function are incorrect
28.69      |
28.69      = note: expected reference `&tokio::sync::RwLock<ServerConfigInstance>`
28.69                 found reference `&Arc<ServerConfigWrapper>`
28.69 note: function defined here
28.69     --> src/main.rs:1739:10
28.69      |
28.69 1739 | async fn run_profiles_query(
28.69      |          ^^^^^^^^^^^^^^^^^^
28.69 1740 |     sc_mutex: &RwLock<ServerConfigInstance>,
28.69      |     ---------------------------------------
28.69 
28.76 warning: unused import: `std::io::prelude`
28.76   --> src/main.rs:19:5
28.76    |
28.76 19 | use std::io::prelude::*;
28.76    |     ^^^^^^^^^^^^^^^^
28.76 
28.95 For more information about this error, try `rustc --explain E0308`.
28.96 warning: `skyfeed-query-engine` (bin "skyfeed-query-engine") generated 2 warnings
28.96 error: could not compile `skyfeed-query-engine` (bin "skyfeed-query-engine") due to 2 previous errors; 2 warnings emitted

<\details>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions