diff --git a/common/src/lib.rs b/common/src/lib.rs index 109a5cb..6eff610 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -2,7 +2,7 @@ mod answer; mod misc; mod part; #[macro_use] -mod solution; +pub mod solution; pub use answer::Answer; pub use misc::{human_time, load}; diff --git a/scaffold/src/commands/verify.rs b/scaffold/src/commands/verify.rs index 6c9cf73..30bee8e 100644 --- a/scaffold/src/commands/verify.rs +++ b/scaffold/src/commands/verify.rs @@ -17,8 +17,8 @@ pub fn verify_inner(session: &Session, address: &Url) -> Result Ok(verification), Ok(None) => { - bail!("[E] Session token is invalid. Sign in again and update with `aoc token`.") + bail!("Session token is invalid. Sign in again and update with `aoc token`.") } - Err(err) => bail!("[E] Failed to verify session: {}", err), + Err(err) => bail!("Failed to verify session: {}", err), } } diff --git a/scaffold/src/main.rs b/scaffold/src/main.rs index b7e731a..6b30707 100644 --- a/scaffold/src/main.rs +++ b/scaffold/src/main.rs @@ -14,9 +14,9 @@ mod session; const TOKEN_VAR: &str = "AOC_TOKEN"; fn main() -> Result<()> { - dotenv::dotenv()?; let args = Args::parse(); + let _ = dotenv::dotenv(); let session = match &args.token { Some(token) => Ok(Session::new(token)), None => Session::from_env(),