typo and clippy

This commit is contained in:
Brendan Hansknecht 2023-11-06 09:12:46 -08:00
parent 23c2b15115
commit e6f5ac5d2a
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ pub fn link(
/// Same format as the precompiled host filename, except with a file extension like ".o" or ".obj"
pub fn legacy_host_file(target: &Triple, platform_main_roc: &Path) -> Option<PathBuf> {
let os = roc_target::OperatingSystem::from(target.operating_system);
let lib_ext = os.static_libary_file_ext();
let lib_ext = os.static_library_file_ext();
let file_name = roc_linker::preprocessed_host_filename(target)?
.replace(roc_linker::PRECOMPILED_HOST_EXT, lib_ext);
@ -467,7 +467,7 @@ pub fn rebuild_host(
.with_file_name("dynhost")
.with_extension(executable_extension)
} else {
legacy_host_file(target, &platform_main_roc).unwrap()
legacy_host_file(target, platform_main_roc).unwrap()
};
let env_path = env::var("PATH").unwrap_or_else(|_| "".to_string());

View file

@ -34,7 +34,7 @@ impl OperatingSystem {
}
}
pub const fn static_libary_file_ext(&self) -> &str {
pub const fn static_library_file_ext(&self) -> &str {
match self {
OperatingSystem::Windows => "lib",
OperatingSystem::Unix => "a",