fix: 修复unified-init导致cargo check失败的问题 (#747)

This commit is contained in:
LoGin 2024-04-21 13:12:31 +08:00 committed by GitHub
parent 881ff6f95e
commit d770de5d53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,13 @@ fn main() {
todo!() todo!()
} }
#[cfg(target_os = "none")]
#[panic_handler]
#[no_mangle]
pub fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use system_error::SystemError; use system_error::SystemError;