Connect applications to schemes, filetypes, and more on macOS (more to come)
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

clippy lints

+3 -3
+3 -3
infat-cli/build.rs
··· 1 1 use clap::{CommandFactory, ValueEnum}; 2 - use clap_complete::{generate_to, Shell}; 2 + use clap_complete::{Shell, generate_to}; 3 3 use std::{env, error::Error, fs, path::Path}; 4 4 5 5 include!("src/cli.rs"); ··· 16 16 17 17 // grab PROFILE ("debug" or "release") 18 18 let profile = env::var("PROFILE")?; 19 - println!("PROFILE = {}", profile); 19 + println!("PROFILE = {profile}"); 20 20 21 21 // walk up ancestors until we find the profile directory 22 22 let mut candidate: &Path = out_dir.as_path(); ··· 46 46 println!(" • {:?} -> {}", shell, path.display()); 47 47 } 48 48 Err(e) => { 49 - println!("failed to generate {:?}: {}", shell, e); 49 + println!("failed to generate {shell:?}: {e}"); 50 50 } 51 51 } 52 52 }