Pastebin
Retrouvez, créez et partagez vos snippets en temps réel.
Rechercher un Pastebin
Aucun paste trouvé.
Créer un paste
Pastebin
Blog
AAA
┌─[mothersphere@archlinux] - [KayaBot] - [ main + / - ] └─>[$] cargo build --release warning: unused imports: `NormalizedName`, `RankedCandidate`, and `normalize_name` --> src/matching/mod.rs:6:20 | 6 | pub use advanced::{NormalizedName, RankedCandidate, normalize_name, rank_... | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default warning: fields `proposed` and `collision_adjusted` are never read --> src/main.rs:81:5 | 79 | struct RenameSummary { | ------------- fields in this struct 80 | original: String, 81 | proposed: String, | ^^^^^^^^ 82 | resolved: String, 83 | collision_adjusted: bool, | ^^^^^^^^^^^^^^^^^^ | = note: `RenameSummary` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `tvmaze_configured` is never used --> src/main.rs:3111:8 | 3013 | impl ApiConfig { | -------------- method in this implementation ... 3111 | fn tvmaze_configured(&self) -> bool { | ^^^^^^^^^^^^^^^^^ warning: function `guess_content_type` is never used --> src/matching/mod.rs:92:8 | 92 | pub fn guess_content_type(results: &[MatchResult]) -> ContentGuess { | ^^^^^^^^^^^^^^^^^^ warning: fields `original` and `tokens` are never read --> src/matching/advanced.rs:5:9 | 4 | pub struct NormalizedName { | -------------- fields in this struct 5 | pub original: String, | ^^^^^^^^ 6 | pub normalized: String, 7 | pub tokens: Vec<String>, | ^^^^^^ | = note: `NormalizedName` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis warning: fields `original`, `normalized`, and `justification` are never read --> src/matching/advanced.rs:17:9 | 16 | pub struct RankedCandidate { | --------------- fields in this struct 17 | pub original: String, | ^^^^^^^^ 18 | pub normalized: String, | ^^^^^^^^^^ 19 | pub score: f32, 20 | pub justification: Vec<String>, | ^^^^^^^^^^^^^ | = note: `RankedCandidate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis warning: method `set_sources` is never used --> src/metadata/aggregate.rs:48:12 | 30 | impl MetadataPipeline { | --------------------- method in this implementation ... 48 | pub fn set_sources(&mut self, primary: MetadataSource, secondary: Op... | ^^^^^^^^^^^ warning: constant `DEFAULT_TTL_SECONDS` is never used --> src/metadata/cache.rs:11:7 | 11 | const DEFAULT_TTL_SECONDS: u64 = 60 * 60 * 24; | ^^^^^^^^^^^^^^^^^^^ warning: constant `CACHE_ENV_PATH` is never used --> src/metadata/cache.rs:12:7 | 12 | const CACHE_ENV_PATH: &str = "KAYABOT_CACHE_PATH"; | ^^^^^^^^^^^^^^ warning: constant `CACHE_ENV_TTL` is never used --> src/metadata/cache.rs:13:7 | 13 | const CACHE_ENV_TTL: &str = "KAYABOT_CACHE_TTL_SECONDS"; | ^^^^^^^^^^^^^ warning: constant `CACHE_ENV_REFRESH` is never used --> src/metadata/cache.rs:14:7 | 14 | const CACHE_ENV_REFRESH: &str = "KAYABOT_CACHE_REFRESH_ON_HIT"; | ^^^^^^^^^^^^^^^^^ warning: struct `CachePolicy` is never constructed --> src/metadata/cache.rs:17:12 | 17 | pub struct CachePolicy { | ^^^^^^^^^^^ warning: associated function `from_env` is never used --> src/metadata/cache.rs:32:12 | 31 | impl CachePolicy { | ---------------- associated function in this implementation 32 | pub fn from_env() -> Self { | ^^^^^^^^ warning: struct `CacheKey` is never constructed --> src/metadata/cache.rs:49:8 | 49 | struct CacheKey { | ^^^^^^^^ warning: struct `CacheEntry` is never constructed --> src/metadata/cache.rs:55:8 | 55 | struct CacheEntry<T> { | ^^^^^^^^^^ warning: struct `CacheStorage` is never constructed --> src/metadata/cache.rs:62:8 | 62 | struct CacheStorage { | ^^^^^^^^^^^^ warning: struct `MetadataCacheSeed` is never constructed --> src/metadata/cache.rs:68:12 | 68 | pub struct MetadataCacheSeed { | ^^^^^^^^^^^^^^^^^ warning: struct `MetadataCacheSeedEntry` is never constructed --> src/metadata/cache.rs:74:12 | 74 | pub struct MetadataCacheSeedEntry<T> { | ^^^^^^^^^^^^^^^^^^^^^^ warning: struct `MetadataCache` is never constructed --> src/metadata/cache.rs:81:12 | 81 | pub struct MetadataCache { | ^^^^^^^^^^^^^ warning: multiple associated items are never used --> src/metadata/cache.rs:89:12 | 88 | impl MetadataCache { | ------------------ associated items in this implementation 89 | pub fn new() -> Self { | ^^^ ... 93 | pub fn with_policy(policy: CachePolicy) -> Self { | ^^^^^^^^^^^ ... 107 | pub fn get_title_search( | ^^^^^^^^^^^^^^^^ ... 130 | pub fn put_title_search( | ^^^^^^^^^^^^^^^^ ... 151 | pub fn get_episode_list( | ^^^^^^^^^^^^^^^^ ... 174 | pub fn put_episode_list( | ^^^^^^^^^^^^^^^^ ... 195 | pub fn clear(&mut self) { | ^^^^^ ... 201 | pub fn merge_seed(&mut self, seed: MetadataCacheSeed) -> usize { | ^^^^^^^^^^ ... 238 | fn read_entry<T: Clone>( | ^^^^^^^^^^ ... 261 | fn write_entry<T: Clone>( | ^^^^^^^^^^^ ... 276 | fn clear_expired(&mut self) { | ^^^^^^^^^^^^^ ... 283 | fn load_from_disk(&mut self) { | ^^^^^^^^^^^^^^ ... 295 | fn persist(&self) { | ^^^^^^^ ... 324 | fn default_cache_path() -> PathBuf { | ^^^^^^^^^^^^^^^^^^ warning: function `current_timestamp` is never used --> src/metadata/cache.rs:338:4 | 338 | fn current_timestamp() -> u64 { | ^^^^^^^^^^^^^^^^^ warning: struct `FileBotLikeProvider` is never constructed --> src/metadata/filebot_like.rs:9:12 | 9 | pub struct FileBotLikeProvider { | ^^^^^^^^^^^^^^^^^^^ warning: struct `TitleRecord` is never constructed --> src/metadata/filebot_like.rs:18:8 | 18 | struct TitleRecord { | ^^^^^^^^^^^ warning: multiple associated items are never used --> src/metadata/filebot_like.rs:25:12 | 24 | impl FileBotLikeProvider { | ------------------------ associated items in this implementation 25 | pub fn new() -> Self { | ^^^ ... 36 | pub fn set_sources(&mut self, primary: MetadataSource, secondary: O... | ^^^^^^^^^^^ ... 45 | pub fn set_source(&mut self, source: MetadataSource) { | ^^^^^^^^^^ ... 49 | pub fn active_source(&self) -> MetadataSource { | ^^^^^^^^^^^^^ ... 53 | fn normalize_query(query: &str) -> String { | ^^^^^^^^^^^^^^^ ... 57 | fn should_fallback(error: &MetadataError) -> bool { | ^^^^^^^^^^^^^^^ ... 61 | fn search_title_for_source( | ^^^^^^^^^^^^^^^^^^^^^^^ ... 106 | fn fetch_episode_list_for_source( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: struct `MovieMatch` is never constructed --> src/metadata/models.rs:55:12 | 55 | pub struct MovieMatch { | ^^^^^^^^^^ warning: struct `NormalizedTitle` is never constructed --> src/metadata/models.rs:67:12 | 67 | pub struct NormalizedTitle { | ^^^^^^^^^^^^^^^ warning: struct `NormalizedEpisode` is never constructed --> src/metadata/models.rs:77:12 | 77 | pub struct NormalizedEpisode { | ^^^^^^^^^^^^^^^^^ warning: method `fetch_movie_details` is never used --> src/metadata/provider.rs:41:8 | 38 | pub trait MetadataProvider: Send { | ---------------- method in this trait ... 41 | fn fetch_movie_details(&mut self, title_id: &str) -> Result<MovieMat... | ^^^^^^^^^^^^^^^^^^^ warning: methods `base_url` and `auth_headers` are never used --> src/metadata/providers/anidb.rs:44:12 | 36 | impl AniDbClient { | ---------------- methods in this implementation ... 44 | pub fn base_url(&self) -> &str { | ^^^^^^^^ ... 48 | pub fn auth_headers(&self) -> HashMap<String, String> { | ^^^^^^^^^^^^ warning: struct `OmdbMovieDetails` is never constructed --> src/metadata/providers/omdb.rs:32:8 | 32 | struct OmdbMovieDetails { | ^^^^^^^^^^^^^^^^ warning: methods `base_url`, `auth_headers`, `fetch_movie`, and `normalize_movie` are never used --> src/metadata/providers/omdb.rs:54:12 | 46 | impl OmdbClient { | --------------- methods in this implementation ... 54 | pub fn base_url(&self) -> &str { | ^^^^^^^^ ... 58 | pub fn auth_headers(&self) -> HashMap<String, String> { | ^^^^^^^^^^^^ ... 143 | fn fetch_movie(&self, title_id: &str) -> Result<OmdbMovieDetails, M... | ^^^^^^^^^^^ ... 192 | fn normalize_movie(&self, details: OmdbMovieDetails) -> MovieMatch { | ^^^^^^^^^^^^^^^ warning: struct `TheTvDbMovieDetails` is never constructed --> src/metadata/providers/thetvdb.rs:54:8 | 54 | struct TheTvDbMovieDetails { | ^^^^^^^^^^^^^^^^^^^ warning: methods `base_url`, `auth_headers`, `fetch_movie`, and `normalize_movie` are never used --> src/metadata/providers/thetvdb.rs:87:12 | 77 | impl TheTvDbClient { | ------------------ methods in this implementation ... 87 | pub fn base_url(&self) -> &str { | ^^^^^^^^ ... 91 | pub fn auth_headers(&self) -> HashMap<String, String> { | ^^^^^^^^^^^^ ... 392 | fn fetch_movie(&mut self, title_id: &str) -> Result<TheTvDbMovieDet... | ^^^^^^^^^^^ ... 448 | fn normalize_movie(&self, details: TheTvDbMovieDetails) -> MovieMat... | ^^^^^^^^^^^^^^^ warning: struct `TmdbMovieDetails` is never constructed --> src/metadata/providers/tmdb.rs:46:8 | 46 | struct TmdbMovieDetails { | ^^^^^^^^^^^^^^^^ warning: methods `base_url`, `auth_headers`, `fetch_movie`, and `normalize_movie` are never used --> src/metadata/providers/tmdb.rs:64:12 | 55 | impl TmdbClient { | --------------- methods in this implementation ... 64 | pub fn base_url(&self) -> &str { | ^^^^^^^^ ... 68 | pub fn auth_headers(&self) -> HashMap<String, String> { | ^^^^^^^^^^^^ ... 264 | fn fetch_movie(&self, title_id: &str) -> Result<TmdbMovieDetails, M... | ^^^^^^^^^^^ ... 325 | fn normalize_movie(&self, details: TmdbMovieDetails) -> MovieMatch { | ^^^^^^^^^^^^^^^ warning: methods `base_url` and `auth_headers` are never used --> src/metadata/providers/tvmaze.rs:41:12 | 33 | impl TvMazeClient { | ----------------- methods in this implementation ... 41 | pub fn base_url(&self) -> &str { | ^^^^^^^^ ... 45 | pub fn auth_headers(&self) -> HashMap<String, String> { | ^^^^^^^^^^^^ warning: multiple associated items are never used --> src/bin/metadata/../../metadata/cache.rs:89:12 | 88 | impl MetadataCache { | ------------------ associated items in this implementation 89 | pub fn new() -> Self { | ^^^ ... 107 | pub fn get_title_search( | ^^^^^^^^^^^^^^^^ ... 130 | pub fn put_title_search( | ^^^^^^^^^^^^^^^^ ... 151 | pub fn get_episode_list( | ^^^^^^^^^^^^^^^^ ... 174 | pub fn put_episode_list( | ^^^^^^^^^^^^^^^^ ... 195 | pub fn clear(&mut self) { | ^^^^^ ... 238 | fn read_entry<T: Clone>( | ^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `MovieMatch` is never constructed --> src/bin/metadata/../../metadata/models.rs:55:12 | 55 | pub struct MovieMatch { | ^^^^^^^^^^ warning: struct `NormalizedTitle` is never constructed --> src/bin/metadata/../../metadata/models.rs:67:12 | 67 | pub struct NormalizedTitle { | ^^^^^^^^^^^^^^^ warning: struct `NormalizedEpisode` is never constructed --> src/bin/metadata/../../metadata/models.rs:77:12 | 77 | pub struct NormalizedEpisode { | ^^^^^^^^^^^^^^^^^ warning: associated items `label` and `from_label` are never used --> src/bin/metadata/../../metadata/provider.rs:16:12 | 15 | impl MetadataSource { | ------------------- associated items in this implementation 16 | pub fn label(self) -> &'static str { | ^^^^^ ... 26 | pub fn from_label(label: &str) -> Option<Self> { | ^^^^^^^^^^ warning: trait `MetadataProvider` is never used --> src/bin/metadata/../../metadata/provider.rs:38:11 | 38 | pub trait MetadataProvider: Send { | ^^^^^^^^^^^^^^^^ warning: `kayabot` (bin "kayabot") generated 36 warnings (run `cargo fix --bin "kayabot"` to apply 1 suggestion) warning: `kayabot` (bin "preload_metadata_cache") generated 6 warnings Finished `release` profile [optimized] target(s) in 0.32s warning: the following packages contain code that will be rejected by a future version of Rust: ashpd v0.8.1 note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` ┌─[mothersphere@archlinux] - [KayaBot] - [ main + / - ] [419ms] └─>[$]
Créé il y a 2 semaines.