fn load(dir: &PathBuf) -> crate::Result<Self> {
    let toml_path = dir.join("Cargo.toml");
    let mut toml_str = String::new();
    let mut toml_file = File::open(toml_path)?;
    toml_file.read_to_string(&mut toml_str)?;
    toml::from_str(&toml_str).map_err(Into::into)
  }
/// Try to load a set of CargoSettings from a "Cargo.toml" file in the specified directory.
Try to load a set of CargoSettings from a "Cargo.toml" file in the specified directory.
Try to load a set of CargoSettings from a " Cargo . toml " file in the specified directory .
fn load(dir: &PathBuf) -> crate::Result<Self> {
    let toml_path = dir.join("Cargo.toml");
    let mut toml_str = String::new();
    let mut toml_file = File::open(toml_path)?;
    toml_file.read_to_string(&mut toml_str)?;
    toml::from_str(&toml_str).map_err(Into::into)
  }
fn load ( dir : & PathBuf ) -> crate :: Result < Self > { let toml_path = dir . join ( " " ) ; let mut toml_str = String :: new ( ) ; let mut toml_file = File :: open ( toml_path ) ? ; toml_file . read_to_string ( & mut toml_str ) ? ; toml :: from_str ( & toml_str ) . map_err ( Into :: into ) }
Try to load a set of CargoSettings from a "Cargo.toml" file in the specified directory.
Try to load a set of CargoSettings from a " Cargo . toml " file in the specified directory .
dir
&PathBuf
dir
&PathBuf