diff --git a/shared/src/advent/challenges/day_one.rs b/shared/src/advent/challenges/day_one.rs index 1db937e..78f331a 100644 --- a/shared/src/advent/challenges/day_one.rs +++ b/shared/src/advent/challenges/day_one.rs @@ -1,10 +1,7 @@ use crate::advent::day::Day; use crate::advent::{AdventChallenge, AdventError, ChallengeCheckResponse}; -use crate::atrium::safe_check_unknown_record_parse; -use crate::lexicons::codes::advent; use crate::{HandleResolver, OAuthAgentType}; use async_trait::async_trait; -use atrium_api::agent::Configure; use atrium_common::resolver::Resolver; use sqlx::PgPool; @@ -52,7 +49,7 @@ impl AdventChallenge for DayOne { async fn check_part_one( &self, - did: String, + _did: String, verification_code: Option, ) -> Result { let client = self @@ -87,7 +84,7 @@ impl AdventChallenge for DayOne { ///TODO this is just a straight copy and paste of part one since it's a proof of concept needs to share code better between the two async fn check_part_two( &self, - did: String, + _did: String, verification_code: Option, ) -> Result { let client = self diff --git a/shared/src/advent/challenges/day_two.rs b/shared/src/advent/challenges/day_two.rs index 4a25284..5ef6bc1 100644 --- a/shared/src/advent/challenges/day_two.rs +++ b/shared/src/advent/challenges/day_two.rs @@ -36,7 +36,7 @@ impl AdventChallenge for DayTwo { /// Create a record via the challenge agent and return the at_uri as additional context async fn build_additional_context( &self, - did: &str, + _did: &str, part: &AdventPart, code: &str, ) -> Result, AdventError> { diff --git a/shared/src/lib.rs b/shared/src/lib.rs index 9683ab3..573ecb2 100644 --- a/shared/src/lib.rs +++ b/shared/src/lib.rs @@ -4,7 +4,7 @@ use crate::atrium::dns_resolver::HickoryDnsTxtResolver; use crate::atrium::stores::{AtriumSessionStore, AtriumStateStore}; use atrium_api::agent::atp_agent::AtpAgent; use atrium_api::{ - agent::Agent, agent::atp_agent::CredentialSession, agent::atp_agent::store::MemorySessionStore, + agent::Agent, agent::atp_agent::store::MemorySessionStore, }; use atrium_identity::did::CommonDidResolver; use atrium_identity::handle::AtprotoHandleResolver; diff --git a/web/src/handlers/day.rs b/web/src/handlers/day.rs index 63b365d..13d6587 100644 --- a/web/src/handlers/day.rs +++ b/web/src/handlers/day.rs @@ -21,7 +21,6 @@ use shared::{ advent::{AdventChallenge, AdventError}, advent::{AdventPart, CompletionStatus}, }; -use sqlx::PgPool; fn pick_day( day: Day, diff --git a/web/src/main.rs b/web/src/main.rs index e4a0b8d..0990a03 100644 --- a/web/src/main.rs +++ b/web/src/main.rs @@ -4,9 +4,8 @@ use crate::{ templates::error::ErrorTemplate, templates::home::{DayStatus, HomeTemplate}, }; -use atrium_api::agent::Agent; use atrium_api::agent::atp_agent::store::MemorySessionStore; -use atrium_api::agent::atp_agent::{AtpAgent, CredentialSession}; +use atrium_api::agent::atp_agent::AtpAgent; use atrium_identity::{ did::{CommonDidResolver, CommonDidResolverConfig, DEFAULT_PLC_DIRECTORY_URL}, handle::{AtprotoHandleResolver, AtprotoHandleResolverConfig}, @@ -30,7 +29,6 @@ use chrono::Datelike; use dotenv::dotenv; use redis::AsyncCommands; use rust_embed::RustEmbed; -use shared::advent::day::Day::Nine; use shared::{ HandleResolver, OAuthClientType, PasswordAgent, advent::{CompletionStatus, get_all_days_completion_status}, @@ -41,7 +39,7 @@ use shared::{ use sqlx::{PgPool, migrate::Migrator, postgres::PgPoolOptions}; use std::{ env, - net::{IpAddr, Ipv4Addr, SocketAddr}, + net::SocketAddr, sync::Arc, time, }; @@ -372,6 +370,7 @@ async fn home_handler(State(pool): State, session: AxumSessionStore) -> } /// The default handler that will be used during the advent month, but not during amtosphere conf +#[expect(dead_code)] // until post-conf async fn dec_home_handler( State(pool): State, session: AxumSessionStore,