Categories
Mastering Development

sqlx installation fails due to mismatched types

I’m installing sqlx on Ubuntu 18.04: cargo install –git https://github.com/launchbadge/sqlx sqlx-cli I get the error error[E0308]: mismatched types –> sqlx-cli/src/opt.rs:8:20 | 8 | #[clap(short = "D", long)] | ^^^ expected `char`, found `&str` $ rustc –explain E0308 Expected type did not match the received type. Erroneous code example: “` let x: i32 = "I am […]