forked from Roflin/gamenight
Cleans up the code a bit
This commit is contained in:
@@ -25,7 +25,7 @@ impl RenameGame {
|
||||
impl<'a> Flow<'a> for RenameGame {
|
||||
async fn run(&self, state: &'a mut GamenightState) -> FlowResult<'a> {
|
||||
if let Some(name) = Text::new(&format!("Rename {} to:", self.game.name))
|
||||
.with_initial_value(&format!("{}", self.game.name))
|
||||
.with_initial_value(&self.game.name)
|
||||
.prompt_skippable()?
|
||||
{
|
||||
let req = RenameGameRequestBody {
|
||||
|
||||
Reference in New Issue
Block a user