Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bbqsrc committed Dec 30, 2024
1 parent a81d7ed commit efa5fec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#[allow(deprecated)]
use std::{
collections::BTreeMap,
env,
ffi::OsString,
fmt::Display,
fs,
io::{self, ErrorKind},
panic::{self, PanicInfo},
panic::{self, PanicHookInfo},
path::{Path, PathBuf},
time::Instant,
};
Expand Down Expand Up @@ -267,8 +266,7 @@ fn is_supported_rustc_version() -> bool {
version_check::is_min_version("1.68.0").unwrap_or_default()
}

#[allow(deprecated)]
fn panic_hook(info: &PanicInfo<'_>) {
fn panic_hook(info: &PanicHookInfo<'_>) {
fn _attempt_shell(lines: &[String]) -> Result<(), anyhow::Error> {
let mut shell = Shell::new();
shell.error("cargo-ndk panicked! Generating report...")?;
Expand Down Expand Up @@ -662,7 +660,7 @@ pub fn run(args: Vec<String>) -> anyhow::Result<()> {
shell.very_verbose(|shell| {
shell.status_with_color(
"Exporting",
format!("ANDROID_PLATFORM={}", platform.to_string()),
format!("ANDROID_PLATFORM={}", platform),
termcolor::Color::Cyan,
)
})?;
Expand Down

0 comments on commit efa5fec

Please sign in to comment.