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

Fix error when building psk-exchange example #5503

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

metametapod
Copy link
Contributor

@metametapod metametapod commented Nov 26, 2023

Fixes the build error:

$ cargo build --example psk-exchange
error[E0433]: failed to resolve: could not find `main` in `tokio`
 --> talpid-tunnel-config-client/examples/psk-exchange.rs:7:10
  |
7 | #[tokio::main]
  |          ^^^^ could not find `main` in `tokio`

error[E0752]: `main` function is not allowed to be `async`
 --> talpid-tunnel-config-client/examples/psk-exchange.rs:8:1
  |
8 | async fn main() {
  | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`

Some errors have detailed explanations: E0433, E0752.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `talpid-tunnel-config-client` (example "psk-exchange") due to 2 previous errors

This change is Reviewable

@faern
Copy link
Member

faern commented Nov 29, 2023

Thanks for the fix! Will merge as soon as the CI passes.

@faern faern merged commit 720e18b into mullvad:main Nov 29, 2023
24 checks passed
@faern
Copy link
Member

faern commented Nov 29, 2023

Thanks for the contribution.

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 this pull request may close these issues.

2 participants