send user agent

This commit is contained in:
Robin Appelman 2024-12-26 00:53:17 +01:00
commit f8b59df362
6 changed files with 21 additions and 10 deletions

View file

@ -1,6 +1,6 @@
use reqwest::StatusCode;
use std::path::PathBuf;
use std::str::FromStr;
use reqwest::StatusCode;
use thiserror::Error;
#[derive(Debug, Error)]
@ -34,7 +34,7 @@ pub enum ConfigError {
},
#[error("Error while parse config file {}: {:#}", path.display(), error)]
Parse {
error: toml::de::Error,
error: toml::de::Error,
path: PathBuf,
},
}
@ -59,4 +59,4 @@ pub enum FetchError {
Feed(#[from] FetchFeedError),
#[error(transparent)]
Hub(#[from] HubError),
}
}