Skip to content

Commit 0e1611e

Browse files
unhappychoiceclaude
andcommitted
chore(fetcher): drop dead helpers reference check in lastfm_top_artists
The `_helpers_reference_check` function and accompanying `top::self` import were a stale defensive measure from when I was unsure whether the dead_code lint would flag direct-by-name imports of unused helpers. Every helper is actually invoked by `render_body` or `sample_body`, so the function is dead weight — top_tracks / top_albums / charts ship without it and compile cleanly. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent fe189e4 commit 0e1611e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎src/fetcher/lastfm/top_artists.rs‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::fetcher::github::common::{cache_key, parse_options, payload};
1111
use crate::fetcher::lastfm::client;
1212
use crate::fetcher::lastfm::common::{ImageEntry, best_image, parse_count};
1313
use crate::fetcher::lastfm::top::{
14-
self, Period, TopRow, badge_body, bars_body, entries_body, headline, image_linked_body,
14+
Period, TopRow, badge_body, bars_body, entries_body, headline, image_linked_body,
1515
linked_text_body, markdown_body, number_series_body, ratio_body, text_block_body, text_body,
1616
};
1717
use crate::fetcher::{FetchContext, FetchError, Fetcher, Safety};
@@ -257,13 +257,6 @@ fn sample_rows() -> Vec<TopRow> {
257257
]
258258
}
259259

260-
// Hook the rendering helpers under the `top::` reference so an accidental rename of one
261-
// helper trips the build at this site rather than only in tests.
262-
#[allow(dead_code)]
263-
fn _helpers_reference_check() {
264-
let _ = top::headline;
265-
}
266-
267260
#[derive(Deserialize)]
268261
struct TopArtistsResponse {
269262
topartists: TopArtistsInner,

0 commit comments

Comments
 (0)