From de63fd914ebec4d4f400dfe7dae271622646ec6d Mon Sep 17 00:00:00 2001 From: projectmoon Date: Fri, 21 May 2021 14:35:56 +0000 Subject: [PATCH] Move commands.rs to commands/mod.rs; move migrate_cli.rs. --- Cargo.toml | 4 ---- src/{migrate_cli.rs => bin/dicebot_migrate.rs} | 0 src/{commands.rs => commands/mod.rs} | 0 src/parser.rs | 2 +- 4 files changed, 1 insertion(+), 5 deletions(-) rename src/{migrate_cli.rs => bin/dicebot_migrate.rs} (100%) rename src/{commands.rs => commands/mod.rs} (100%) diff --git a/Cargo.toml b/Cargo.toml index ffb2ea7..7d5bacc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,6 @@ repository = 'https://git.agnos.is/projectmoon/matrix-dicebot' keywords = ["games", "dice", "matrix", "bot"] categories = ["games"] -[[bin]] -name = "dicebot-migrate" -path = "src/migrate_cli.rs" - [dependencies] log = "0.4" tracing-subscriber = "0.2" diff --git a/src/migrate_cli.rs b/src/bin/dicebot_migrate.rs similarity index 100% rename from src/migrate_cli.rs rename to src/bin/dicebot_migrate.rs diff --git a/src/commands.rs b/src/commands/mod.rs similarity index 100% rename from src/commands.rs rename to src/commands/mod.rs diff --git a/src/parser.rs b/src/parser.rs index e4b9f1a..389515b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -27,7 +27,7 @@ pub enum DiceParsingError { } impl From for DiceParsingError { - fn from(_error: std::num::ParseIntError) -> Self { + fn from(_: std::num::ParseIntError) -> Self { DiceParsingError::ConversionError } }