1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-05-31 07:30:52 +00:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)]