Skip to content

Commit

Permalink
chore: use pub(crate) to get notified about dead code (jdx#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored and triarius committed Sep 18, 2024
1 parent 25a3e80 commit b66c7a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ use serde_derive::Deserialize;
#[derive(Debug, Deserialize)]
pub struct GithubRelease {
pub tag_name: String,
pub name: Option<String>,
pub body: Option<String>,
pub prerelease: bool,
pub created_at: String,
pub published_at: Option<String>,
// pub name: Option<String>,
// pub body: Option<String>,
// pub prerelease: bool,
// pub created_at: String,
// pub published_at: Option<String>,
}

pub fn list_releases(repo: &str) -> eyre::Result<Vec<GithubRelease>> {
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ mod regex;
mod cmd;

mod backend;
pub mod build_time;
pub(crate) mod build_time;
mod cache;
mod cli;
mod config;
mod default_shorthands;
mod direnv;
mod dirs;
pub mod duration;
pub(crate) mod duration;
mod env;
mod env_diff;
mod errors;
#[cfg_attr(windows, path = "fake_asdf_windows.rs")]
mod fake_asdf;
mod file;
mod git;
pub mod github;
pub(crate) mod github;
mod hash;
mod hook_env;
mod http;
Expand All @@ -51,8 +51,8 @@ mod shell;
mod shims;
mod shorthands;
mod task;
pub mod tera;
pub mod timeout;
pub(crate) mod tera;
pub(crate) mod timeout;
mod toml;
mod toolset;
mod ui;
Expand Down

0 comments on commit b66c7a8

Please sign in to comment.