Make command struct fields public
They should've been public the entire time, but i forgor
This commit is contained in:
parent
053b614187
commit
30640b393a
2 changed files with 12 additions and 12 deletions
|
|
@ -24,9 +24,9 @@ pub fn parse_prefix_initiated<'a>(text: &'a str, prefix: &str) -> Option<(&'a st
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Global<C> {
|
pub struct Global<C> {
|
||||||
prefix: String,
|
pub prefix: String,
|
||||||
name: String,
|
pub name: String,
|
||||||
inner: C,
|
pub inner: C,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C> Global<C> {
|
impl<C> Global<C> {
|
||||||
|
|
@ -69,9 +69,9 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct General<C> {
|
pub struct General<C> {
|
||||||
prefix: String,
|
pub prefix: String,
|
||||||
name: String,
|
pub name: String,
|
||||||
inner: C,
|
pub inner: C,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C> General<C> {
|
impl<C> General<C> {
|
||||||
|
|
@ -121,9 +121,9 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Specific<C> {
|
pub struct Specific<C> {
|
||||||
prefix: String,
|
pub prefix: String,
|
||||||
name: String,
|
pub name: String,
|
||||||
inner: C,
|
pub inner: C,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C> Specific<C> {
|
impl<C> Specific<C> {
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,8 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Prefixed<C> {
|
pub struct Prefixed<C> {
|
||||||
prefix: String,
|
pub prefix: String,
|
||||||
inner: C,
|
pub inner: C,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C> Prefixed<C> {
|
impl<C> Prefixed<C> {
|
||||||
|
|
@ -122,7 +122,7 @@ where
|
||||||
type Future = Fut;
|
type Future = Fut;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct FromHandler<F>(F);
|
pub struct FromHandler<F>(pub F);
|
||||||
|
|
||||||
impl<F> FromHandler<F> {
|
impl<F> FromHandler<F> {
|
||||||
pub fn new(f: F) -> Self {
|
pub fn new(f: F) -> Self {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue