From 30640b393a37c270b9a880edc6da5af977be6a41 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 29 Dec 2024 13:58:30 +0100 Subject: [PATCH] Make command struct fields public They should've been public the entire time, but i forgor --- euphoxide-bot/src/command/bang.rs | 18 +++++++++--------- euphoxide-bot/src/command/basic.rs | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/euphoxide-bot/src/command/bang.rs b/euphoxide-bot/src/command/bang.rs index ad94c4a..1d433f5 100644 --- a/euphoxide-bot/src/command/bang.rs +++ b/euphoxide-bot/src/command/bang.rs @@ -24,9 +24,9 @@ pub fn parse_prefix_initiated<'a>(text: &'a str, prefix: &str) -> Option<(&'a st } pub struct Global { - prefix: String, - name: String, - inner: C, + pub prefix: String, + pub name: String, + pub inner: C, } impl Global { @@ -69,9 +69,9 @@ where } pub struct General { - prefix: String, - name: String, - inner: C, + pub prefix: String, + pub name: String, + pub inner: C, } impl General { @@ -121,9 +121,9 @@ where } pub struct Specific { - prefix: String, - name: String, - inner: C, + pub prefix: String, + pub name: String, + pub inner: C, } impl Specific { diff --git a/euphoxide-bot/src/command/basic.rs b/euphoxide-bot/src/command/basic.rs index 51804d9..c60f2cf 100644 --- a/euphoxide-bot/src/command/basic.rs +++ b/euphoxide-bot/src/command/basic.rs @@ -69,8 +69,8 @@ where } pub struct Prefixed { - prefix: String, - inner: C, + pub prefix: String, + pub inner: C, } impl Prefixed { @@ -122,7 +122,7 @@ where type Future = Fut; } -pub struct FromHandler(F); +pub struct FromHandler(pub F); impl FromHandler { pub fn new(f: F) -> Self {