From af5d0f4af58d8e86a877221804f9ad93c5bf0f9c Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 1 Aug 2023 17:12:50 +0200 Subject: [PATCH] chore: fmt Signed-off-by: kjuulh --- crates/cuddle-please-commands/src/command.rs | 4 ++-- crates/cuddle-please-commands/src/gitea_command.rs | 4 ++-- crates/cuddle-please/tests/config.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/cuddle-please-commands/src/command.rs b/crates/cuddle-please-commands/src/command.rs index 031af04..9161401 100644 --- a/crates/cuddle-please-commands/src/command.rs +++ b/crates/cuddle-please-commands/src/command.rs @@ -8,8 +8,8 @@ use std::{ use clap::{Parser, Subcommand}; use cuddle_please_frontend::{gatheres::ConfigArgs, PleaseConfig, PleaseConfigBuilder}; use cuddle_please_misc::{ - get_most_significant_version, ConsoleUi, DynRemoteGitClient, DynUi, GiteaClient, GlobalArgs, - LocalGitClient, NextVersion, RemoteGitEngine, StdinFn, VcsClient, + ConsoleUi, DynRemoteGitClient, DynUi, GiteaClient, GlobalArgs, LocalGitClient, StdinFn, + VcsClient, }; use crate::{ diff --git a/crates/cuddle-please-commands/src/gitea_command.rs b/crates/cuddle-please-commands/src/gitea_command.rs index e59396d..f4a361d 100644 --- a/crates/cuddle-please-commands/src/gitea_command.rs +++ b/crates/cuddle-please-commands/src/gitea_command.rs @@ -1,6 +1,6 @@ use clap::Subcommand; use cuddle_please_frontend::PleaseConfig; -use cuddle_please_misc::{get_most_significant_version, DynRemoteGitClient, DynUi, GiteaClient}; +use cuddle_please_misc::{get_most_significant_version, DynRemoteGitClient, DynUi}; #[derive(Subcommand, Debug, Clone)] pub enum GiteaCommand { @@ -39,7 +39,7 @@ impl GiteaCommandHandler { } } - pub fn execute(&self, command: &GiteaCommand, token: &str) -> anyhow::Result<()> { + pub fn execute(&self, command: &GiteaCommand, _token: &str) -> anyhow::Result<()> { let owner = self.config.get_owner(); let repository = self.config.get_repository(); diff --git a/crates/cuddle-please/tests/config.rs b/crates/cuddle-please/tests/config.rs index 0534c0a..50b62ba 100644 --- a/crates/cuddle-please/tests/config.rs +++ b/crates/cuddle-please/tests/config.rs @@ -16,7 +16,7 @@ fn get_base_args<'a>() -> Vec<&'a str> { ] } -const EXPECTED_OUTPUT: &'static str = r#"cuddle-config +const EXPECTED_OUTPUT: &str = r#"cuddle-config PleaseConfig owner: kjuulh repository: cuddle-please