Placate clippy

This commit is contained in:
SkyfallWasTaken 2024-07-29 18:47:52 +01:00
parent 7e8ecea10c
commit f41dac26eb
3 changed files with 5 additions and 10 deletions

View file

@ -85,10 +85,8 @@ pub async fn init() -> Result<()> {
let license: String = Input::with_theme(&ColorfulTheme::default())
.with_prompt("License")
.validate_with(|input: &String| {
spdx::Expression::parse(input).map_or_else(
|err| Err(format!("license is invalid:\n{}", err.to_string())),
|_| Ok(()),
)
spdx::Expression::parse(input)
.map_or_else(|err| Err(format!("license is invalid:\n{err}")), |_| Ok(()))
})
.default("MIT".into())
.interact_text()?;