pub -> pub(crate)

This commit is contained in:
asonix
2021-02-09 22:17:20 -06:00
parent 50d2b5b21c
commit 2c275e441b
31 changed files with 86 additions and 104 deletions
+3 -3
View File
@@ -2,6 +2,6 @@ mod payload;
mod verifier;
mod webfinger;
pub use payload::DebugPayload;
pub use verifier::MyVerify;
pub use webfinger::RelayResolver;
pub(crate) use payload::DebugPayload;
pub(crate) use verifier::MyVerify;
pub(crate) use webfinger::RelayResolver;
+3 -3
View File
@@ -14,15 +14,15 @@ use log::{error, info};
use std::task::{Context, Poll};
#[derive(Clone, Debug)]
pub struct DebugPayload(pub bool);
pub(crate) struct DebugPayload(pub bool);
#[doc(hidden)]
#[derive(Clone, Debug)]
pub struct DebugPayloadMiddleware<S>(bool, S);
pub(crate) struct DebugPayloadMiddleware<S>(bool, S);
#[derive(Clone, Debug, thiserror::Error)]
#[error("Failed to read payload")]
pub struct DebugError;
pub(crate) struct DebugError;
impl ResponseError for DebugError {
fn status_code(&self) -> StatusCode {
+1 -1
View File
@@ -14,7 +14,7 @@ use sha2::{Digest, Sha256};
use std::{future::Future, pin::Pin};
#[derive(Clone)]
pub struct MyVerify(pub Requests, pub ActorCache, pub State);
pub(crate) struct MyVerify(pub Requests, pub ActorCache, pub State);
impl MyVerify {
async fn verify(
+2 -2
View File
@@ -7,11 +7,11 @@ use actix_webfinger::{Resolver, Webfinger};
use rsa_magic_public_key::AsMagicPublicKey;
use std::{future::Future, pin::Pin};
pub struct RelayResolver;
pub(crate) struct RelayResolver;
#[derive(Clone, Debug, thiserror::Error)]
#[error("Error resolving webfinger data")]
pub struct RelayError;
pub(crate) struct RelayError;
type FutResult<T, E> = dyn Future<Output = Result<T, E>>;