make everything pub(crate) instead of pub
conduwuit is not a library Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
472c32f453
commit
66bb88a03a
135 changed files with 1366 additions and 1247 deletions
|
@ -15,7 +15,7 @@ use crate::{
|
|||
Config, Error, Result, Ruma, RumaResponse,
|
||||
};
|
||||
|
||||
pub fn routes(config: &Config) -> Router {
|
||||
pub(crate) fn routes(config: &Config) -> Router {
|
||||
let router = Router::new()
|
||||
.ruma_route(client_server::get_supported_versions_route)
|
||||
.ruma_route(client_server::get_register_available_route)
|
||||
|
@ -266,7 +266,7 @@ impl RouterExt for Router {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait RumaHandler<T> {
|
||||
pub(crate) trait RumaHandler<T> {
|
||||
// Can't transform to a handler without boxing or relying on the nightly-only
|
||||
// impl-trait-in-traits feature. Moving a small amount of extra logic into the
|
||||
// trait allows bypassing both.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue