···55 owo_colors::OwoColorize,
66};
77use infat_lib::{
88- app, association, config, macos::launch_services_db, uti::SuperType, GlobalOptions,
88+ app, association, config, macos::launch_services_db, GlobalOptions,
99};
1010use std::path::PathBuf;
1111-use tracing::{error, info};
1111+use tracing::info;
12121313#[derive(Parser, Debug, Clone)]
1414#[command(
···233233 info!("Getting info for application: {}", app_name);
234234235235 let app_info = app::get_app_info(&app_name)
236236- .wrap_err_with(|| format!("Failed to get info for app: {}", app_name))?;
236236+ .wrap_err_with(|| format!("Failed to get info for app: {app_name}"))?;
237237238238 // Display application information
239239 println!("{}", "Application Information".bright_blue().bold());
···264264 let exts: Vec<String> = declared_type
265265 .extensions
266266 .iter()
267267- .map(|ext| format!(".{}", ext))
267267+ .map(|ext| format!(".{ext}"))
268268 .collect();
269269 println!(" Extensions: {}", exts.join(", ").bright_green());
270270 }
···279279 info!("Getting info for extension: .{}", extension);
280280281281 let info = association::get_info_for_extension(&extension)
282282- .wrap_err_with(|| format!("Failed to get info for extension: .{}", extension))?;
282282+ .wrap_err_with(|| format!("Failed to get info for extension: .{extension}"))?;
283283284284 println!(
285285 "📄 File Extension: {}",
286286- format!(".{}", extension).bright_green()
286286+ format!(".{extension}").bright_green()
287287 );
288288289289 if let Some(uti) = &info.uti {
···303303 if !all_app_names.is_empty() {
304304 println!("\n{}", "All registered apps:".bright_blue().bold());
305305 for app_name in all_app_names {
306306- println!(" • {}", app_name);
306306+ println!(" • {app_name}");
307307 }
308308 } else {
309309 println!(
···315315 info!("Getting info for type: {}", type_name);
316316317317 let info = association::get_info_for_type(&type_name)
318318- .wrap_err_with(|| format!("Failed to get info for type: {}", type_name))?;
318318+ .wrap_err_with(|| format!("Failed to get info for type: {type_name}"))?;
319319320320 println!("🏷️ File Type: {}", type_name.bright_green());
321321···336336 if !all_app_names.is_empty() {
337337 println!("\n{}", "All registered apps:".bright_blue().bold());
338338 for app_name in all_app_names {
339339- println!(" • {}", app_name);
339339+ println!(" • {app_name}");
340340 }
341341 } else {
342342 println!("\n{}", "No applications registered for this type".yellow());
···381381382382 association::set_default_app_for_extension(&extension, &app_name)
383383 .await
384384- .wrap_err_with(|| format!("Failed to set default app for .{}", extension))?;
384384+ .wrap_err_with(|| format!("Failed to set default app for .{extension}"))?;
385385386386 if !opts.quiet {
387387 println!(
···396396397397 association::set_default_app_for_url_scheme(&url_scheme, &app_name)
398398 .await
399399- .wrap_err_with(|| format!("Failed to set default app for {} scheme", url_scheme))?;
399399+ .wrap_err_with(|| format!("Failed to set default app for {url_scheme} scheme"))?;
400400401401 if !opts.quiet {
402402 println!(
···411411412412 association::set_default_app_for_type(&type_name, &app_name)
413413 .await
414414- .wrap_err_with(|| format!("Failed to set default app for type {}", type_name))?;
414414+ .wrap_err_with(|| format!("Failed to set default app for type {type_name}"))?;
415415416416 if !opts.quiet {
417417 println!(
+3-3
infat-lib/src/app.rs
···77};
88use plist::Value;
99use std::path::PathBuf;
1010-use tracing::{debug, warn};
1010+use tracing::debug;
11111212/// Information about an application's declared file types and URL schemes
1313#[derive(Debug, Clone)]
···7575 .to_string();
76767777 // Parse declared document types
7878- let declared_types = parse_document_types(&dict);
7878+ let declared_types = parse_document_types(dict);
79798080 // Parse declared URL schemes
8181- let declared_schemes = parse_url_schemes(&dict);
8181+ let declared_schemes = parse_url_schemes(dict);
82828383 Ok(AppInfo {
8484 bundle_id,