Skip to content

Commit c2a5ec7

Browse files
Rustin170506Darunada
authored andcommitted
Make all src functions and structs crate-private
Signed-off-by: hi-rustin <[email protected]> Fmt code Signed-off-by: hi-rustin <[email protected]>
1 parent 6745cd9 commit c2a5ec7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/config.rs

+8
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,11 @@ impl Cfg {
491491
}
492492
}
493493

494+
<<<<<<< HEAD
494495
pub(crate) fn which_binary(&self, path: &Path, binary: &str) -> Result<PathBuf> {
496+
=======
497+
pub(crate) fn which_binary(&self, path: &Path, binary: &str) -> Result<Option<PathBuf>> {
498+
>>>>>>> 2fcb8beb (Make all src functions and structs crate-private)
495499
let (toolchain, _) = self.find_or_install_override_toolchain_or_default(path)?;
496500
Ok(toolchain.binary_file(binary))
497501
}
@@ -1008,9 +1012,13 @@ impl Cfg {
10081012
}
10091013

10101014
pub(crate) fn resolve_toolchain(&self, name: &str) -> Result<String> {
1015+
<<<<<<< HEAD
10111016
// remove trailing slashes in toolchain name
10121017
let normalized_name = name.trim_end_matches('/');
10131018
if let Ok(desc) = dist::PartialToolchainDesc::from_str(normalized_name) {
1019+
=======
1020+
if let Ok(desc) = dist::PartialToolchainDesc::from_str(name) {
1021+
>>>>>>> 2fcb8beb (Make all src functions and structs crate-private)
10141022
let host = self.get_default_host_triple()?;
10151023
Ok(desc.resolve(&host)?.to_string())
10161024
} else {

0 commit comments

Comments
 (0)