Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use pub(crate) to get notified about dead code #2426

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading