Browse Source

fix clippy

remotes/origin/list-filter
Gal Schlezinger 9 months ago
parent
commit
ab5ea61c41
  1. 2
      src/commands/install.rs
  2. 3
      src/commands/ls_remote.rs

2
src/commands/install.rs

@ -259,7 +259,7 @@ mod tests { @@ -259,7 +259,7 @@ mod tests {
#[test]
fn test_install_latest() {
let base_dir = std::path::PathBuf::from("/tmp/test123");
let config = FnmConfig::default().with_base_dir(Some(base_dir.to_path_buf()));
let config = FnmConfig::default().with_base_dir(Some(base_dir.clone()));
Install {
version: None,

3
src/commands/ls_remote.rs

@ -7,12 +7,13 @@ use thiserror::Error; @@ -7,12 +7,13 @@ use thiserror::Error;
#[derive(clap::Parser, Debug)]
pub struct LsRemote {
/// Filter with SemVer
/// Filter with `SemVer`
#[arg(long)]
filter: Option<UserVersion>,
/// Show only LTS versions (optionally filter by LTS codename)
#[arg(long)]
#[allow(clippy::option_option)]
lts: Option<Option<String>>,
/// Version sorting order

Loading…
Cancel
Save