refactor: simplify `shadow-rs` setup in `build.rs` (#5209)
Update build.rs
This commit is contained in:
parent
d2c336cc07
commit
2e8b51c5e8
1
build.rs
1
build.rs
|
@ -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)]
|
||||||
|
|
Loading…
Reference in New Issue