···4141) -> Result<(), Error> {
4242 let car = load_car(
4343 config::USER_DID.clone(),
4444- Url::parse(&format!("https://{}/", config::USER_EXPORT_URL)).unwrap(),
4444+ Url::parse(&format!("https://{}/", config::USER_EXPORT_URL))
4545+ .expect("env variable USER_EXPORT_URL should be a domain string"),
4546 )
4647 .await?;
4748
+2-2
src/config/mod.rs
···8080 resolver
8181 .pds_for_did(&self::USER_DID)
8282 .await
8383- .unwrap()
8383+ .expect("The did document for a user should contain a #atproto_pds service with a url")
8484 .domain()
8585- .unwrap()
8585+ .expect("A users pds should have a domain.")
8686 .to_string()
8787 }
8888 })