Skip to content

Commit ec9d658

Browse files
committed
Make some fields private
Signed-off-by: hi-rustin <[email protected]>
1 parent c4e961c commit ec9d658

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,20 +229,20 @@ impl Display for PgpPublicKey {
229229
pub const UNIX_FALLBACK_SETTINGS: &str = "/etc/rustup/settings.toml";
230230

231231
pub struct Cfg {
232-
pub(crate) profile_override: Option<dist::Profile>,
232+
profile_override: Option<dist::Profile>,
233233
pub rustup_dir: PathBuf,
234234
pub settings_file: SettingsFile,
235235
pub fallback_settings: Option<FallbackSettings>,
236236
pub toolchains_dir: PathBuf,
237237
pub update_hash_dir: PathBuf,
238238
pub download_dir: PathBuf,
239-
pub(crate) temp_cfg: temp::Cfg,
239+
pub temp_cfg: temp::Cfg,
240240
pgp_keys: Vec<PgpPublicKey>,
241241
pub toolchain_override: Option<String>,
242242
pub env_override: Option<String>,
243243
pub dist_root_url: String,
244244
pub dist_root_server: String,
245-
pub(crate) notify_handler: Arc<dyn Fn(Notification<'_>)>,
245+
pub notify_handler: Arc<dyn Fn(Notification<'_>)>,
246246
}
247247

248248
impl Cfg {

src/dist/manifest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ pub(crate) const SUPPORTED_MANIFEST_VERSIONS: [&str; 1] = ["2"];
2626

2727
#[derive(Clone, Debug, PartialEq)]
2828
pub struct Manifest {
29-
pub(crate) manifest_version: String,
30-
pub(crate) date: String,
29+
manifest_version: String,
30+
pub date: String,
3131
pub packages: HashMap<String, Package>,
3232
pub renames: HashMap<String, String>,
3333
pub reverse_renames: HashMap<String, String>,
34-
pub(crate) profiles: HashMap<Profile, Vec<String>>,
34+
profiles: HashMap<Profile, Vec<String>>,
3535
}
3636

3737
#[derive(Clone, Debug, PartialEq)]

0 commit comments

Comments
 (0)