this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cleanup: all unused stuff warnings

phil 18192a93 54c9dbd5

+7 -12
+2 -5
shared/src/advent/challenges/day_one.rs
··· 1 1 use crate::advent::day::Day; 2 2 use crate::advent::{AdventChallenge, AdventError, ChallengeCheckResponse}; 3 - use crate::atrium::safe_check_unknown_record_parse; 4 - use crate::lexicons::codes::advent; 5 3 use crate::{HandleResolver, OAuthAgentType}; 6 4 use async_trait::async_trait; 7 - use atrium_api::agent::Configure; 8 5 use atrium_common::resolver::Resolver; 9 6 use sqlx::PgPool; 10 7 ··· 52 49 53 50 async fn check_part_one( 54 51 &self, 55 - did: String, 52 + _did: String, 56 53 verification_code: Option<String>, 57 54 ) -> Result<ChallengeCheckResponse, AdventError> { 58 55 let client = self ··· 87 84 ///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 88 85 async fn check_part_two( 89 86 &self, 90 - did: String, 87 + _did: String, 91 88 verification_code: Option<String>, 92 89 ) -> Result<ChallengeCheckResponse, AdventError> { 93 90 let client = self
+1 -1
shared/src/advent/challenges/day_two.rs
··· 36 36 /// Create a record via the challenge agent and return the at_uri as additional context 37 37 async fn build_additional_context( 38 38 &self, 39 - did: &str, 39 + _did: &str, 40 40 part: &AdventPart, 41 41 code: &str, 42 42 ) -> Result<Option<serde_json::Value>, AdventError> {
+1 -1
shared/src/lib.rs
··· 4 4 use crate::atrium::stores::{AtriumSessionStore, AtriumStateStore}; 5 5 use atrium_api::agent::atp_agent::AtpAgent; 6 6 use atrium_api::{ 7 - agent::Agent, agent::atp_agent::CredentialSession, agent::atp_agent::store::MemorySessionStore, 7 + agent::Agent, agent::atp_agent::store::MemorySessionStore, 8 8 }; 9 9 use atrium_identity::did::CommonDidResolver; 10 10 use atrium_identity::handle::AtprotoHandleResolver;
-1
web/src/handlers/day.rs
··· 21 21 advent::{AdventChallenge, AdventError}, 22 22 advent::{AdventPart, CompletionStatus}, 23 23 }; 24 - use sqlx::PgPool; 25 24 26 25 fn pick_day( 27 26 day: Day,
+3 -4
web/src/main.rs
··· 4 4 templates::error::ErrorTemplate, 5 5 templates::home::{DayStatus, HomeTemplate}, 6 6 }; 7 - use atrium_api::agent::Agent; 8 7 use atrium_api::agent::atp_agent::store::MemorySessionStore; 9 - use atrium_api::agent::atp_agent::{AtpAgent, CredentialSession}; 8 + use atrium_api::agent::atp_agent::AtpAgent; 10 9 use atrium_identity::{ 11 10 did::{CommonDidResolver, CommonDidResolverConfig, DEFAULT_PLC_DIRECTORY_URL}, 12 11 handle::{AtprotoHandleResolver, AtprotoHandleResolverConfig}, ··· 30 29 use dotenv::dotenv; 31 30 use redis::AsyncCommands; 32 31 use rust_embed::RustEmbed; 33 - use shared::advent::day::Day::Nine; 34 32 use shared::{ 35 33 HandleResolver, OAuthClientType, PasswordAgent, 36 34 advent::{CompletionStatus, get_all_days_completion_status}, ··· 41 39 use sqlx::{PgPool, migrate::Migrator, postgres::PgPoolOptions}; 42 40 use std::{ 43 41 env, 44 - net::{IpAddr, Ipv4Addr, SocketAddr}, 42 + net::SocketAddr, 45 43 sync::Arc, 46 44 time, 47 45 }; ··· 372 370 } 373 371 374 372 /// The default handler that will be used during the advent month, but not during amtosphere conf 373 + #[expect(dead_code)] // until post-conf 375 374 async fn dec_home_handler( 376 375 State(pool): State<PgPool>, 377 376 session: AxumSessionStore,