mirror of
https://github.com/SkyfallWasTaken/dinopkg.git
synced 2025-05-22 08:53:06 +00:00
Placate clippy
This commit is contained in:
parent
7e8ecea10c
commit
f41dac26eb
3 changed files with 5 additions and 10 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue