refactor: simplify shadow-rs setup in build.rs (#5209)

Update build.rs
This commit is contained in:
baoyachi. Aka Rust Hairy crabs
2023-06-02 03:18:12 +08:00
committed by GitHub
parent d2c336cc07
commit 2e8b51c5e8

View File

@ -4,7 +4,6 @@ use std::io::Write;
use shadow_rs::SdResult; use shadow_rs::SdResult;
fn main() -> SdResult<()> { fn main() -> SdResult<()> {
shadow_rs::new().map_err(|err| err.to_string())?;
shadow_rs::new_hook(gen_presets_hook)?; shadow_rs::new_hook(gen_presets_hook)?;
#[cfg(windows)] #[cfg(windows)]