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