diff --git a/sudachi/src/plugin/loader.rs b/sudachi/src/plugin/loader.rs index dfba8a1e..e4d18d20 100644 --- a/sudachi/src/plugin/loader.rs +++ b/sudachi/src/plugin/loader.rs @@ -52,12 +52,7 @@ struct PluginLoader<'a, 'b, T: PluginCategory + ?Sized> { plugins: Vec<::BoxType>, } -#[cfg(target_os = "freebsd")] -fn make_system_specific_name(s: &str) -> String { - format!("lib{}.so", s) -} - -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "freebsd"))] fn make_system_specific_name(s: &str) -> String { format!("lib{}.so", s) }