Update dependencies and lints

This commit is contained in:
2026-09-07 22:31:04 -07:00
parent b518d762f1
commit 9c288d051c
79 changed files with 3473 additions and 2923 deletions
+12 -4
View File
@@ -1,21 +1,29 @@
//! CLI configuration.
/// Top level config struct.
#[derive(serde::Deserialize)]
pub struct Config {
pub(crate) struct Config {
/// The TMDB config.
tmdb: TmdbConfig,
}
/// TMDB config struct.
#[derive(serde::Deserialize)]
pub struct TmdbConfig {
pub(crate) struct TmdbConfig {
/// The bearer token to use for API requests.
bearer_token: String,
}
impl Config {
pub fn tmdb(&self) -> &TmdbConfig {
/// Get the TMDB config.
pub(crate) const fn tmdb(&self) -> &TmdbConfig {
&self.tmdb
}
}
impl TmdbConfig {
pub fn bearer_token(&self) -> &str {
/// Get the bearer token.
pub(crate) fn bearer_token(&self) -> &str {
&self.bearer_token
}
}