We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f21e958 commit dcb6b1cCopy full SHA for dcb6b1c
integration/main.rs
@@ -27,14 +27,7 @@ enum Error{
27
28
const VERSION: &str = env!("CARGO_PKG_VERSION");
29
#[tokio::main]
30
-async fn main() {
31
- println!("Hello");
32
- match test().await {
33
- Ok(()) => {}
34
- Err(e) => eprint!("{e}")
35
- }
36
-}
37
-async fn test() -> Result<(), anyhow::Error>{
+async fn main() -> Result<(), anyhow::Error> {
38
dotenv::dotenv().map_err(|e|Error::DotenvInitError(e))?;
39
let username = dotenv::var("USERNAME").map_err(|e|Error::NoUsername(e))?;
40
let password = dotenv::var("PASSWORD").map_err(|e|Error::NoPassword(e))?;
0 commit comments