Fix some clippy lints
This commit is contained in:
@@ -110,15 +110,15 @@ pub fn get_config(
|
|||||||
// 3b. or default, if the table couldn't be found.
|
// 3b. or default, if the table couldn't be found.
|
||||||
.or(Ok(PartialConfig::default()))
|
.or(Ok(PartialConfig::default()))
|
||||||
// 4. assemble a 2-tuple of PartialConfigs by...
|
// 4. assemble a 2-tuple of PartialConfigs by...
|
||||||
.and_then(|proj| {
|
.map(|proj| {
|
||||||
Ok((
|
(
|
||||||
// 4-1. Passing in the project-specific PartialConfig
|
// 4-1. Passing in the project-specific PartialConfig
|
||||||
proj.project_path(project),
|
proj.project_path(project),
|
||||||
// 4-2. Getting and converting to PartialConfig, or returning any Err() if one appears.
|
// 4-2. Getting and converting to PartialConfig, or returning any Err() if one appears.
|
||||||
get_table(cfg_table, "all")
|
get_table(cfg_table, "all")
|
||||||
.and_then(PartialConfig::try_from)
|
.and_then(PartialConfig::try_from)
|
||||||
.unwrap_or(PartialConfig::default()),
|
.unwrap_or(PartialConfig::default()),
|
||||||
))
|
)
|
||||||
})
|
})
|
||||||
.map(|pair| pair.0.merge(pair.1))
|
.map(|pair| pair.0.merge(pair.1))
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ async fn main() -> Result<(), gt_tool::Error> {
|
|||||||
.ok_or(gt_tool::Error::MissingRepoFRQN)
|
.ok_or(gt_tool::Error::MissingRepoFRQN)
|
||||||
.and_then(|mut own| {
|
.and_then(|mut own| {
|
||||||
let repo = config.repo.ok_or(gt_tool::Error::MissingRepoFRQN)?;
|
let repo = config.repo.ok_or(gt_tool::Error::MissingRepoFRQN)?;
|
||||||
own.push_str("/");
|
own.push('/');
|
||||||
own.push_str(&repo);
|
own.push_str(&repo);
|
||||||
Ok(own)
|
Ok(own)
|
||||||
});
|
});
|
||||||
@@ -67,7 +67,7 @@ async fn main() -> Result<(), gt_tool::Error> {
|
|||||||
releases.iter().rev().map(|release| release.colorized()),
|
releases.iter().rev().map(|release| release.colorized()),
|
||||||
String::from(""),
|
String::from(""),
|
||||||
)
|
)
|
||||||
.map(|release| println!("{}", release))
|
.map(|release| println!("{release}"))
|
||||||
.fold((), |_, _| ());
|
.fold((), |_, _| ());
|
||||||
}
|
}
|
||||||
gt_tool::cli::Commands::CreateRelease {
|
gt_tool::cli::Commands::CreateRelease {
|
||||||
|
|||||||
Reference in New Issue
Block a user