From c8d2713f779bfb16dbf741d511423924f5fa711b Mon Sep 17 00:00:00 2001 From: Juuso Tuononen Date: Sun, 26 May 2024 14:08:11 +0300 Subject: [PATCH] Change public API to have response module --- src/client/mod.rs | 8 +++++--- src/lib.rs | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index 79669ae77..dcfd904ae 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -1,4 +1,4 @@ -pub(crate) mod response; +pub mod response; mod oauth; @@ -9,9 +9,11 @@ use reqwest::header::RETRY_AFTER; use crate::client::response::FcmResponse; use crate::message::{Message, MessageWrapper}; -use crate::RetryAfter; -use self::oauth::OauthClient; +use self::{ + oauth::OauthClient, + response::RetryAfter, +}; pub use self::oauth::OauthError; diff --git a/src/lib.rs b/src/lib.rs index be6e5eb4c..4da93ba03 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,5 +54,4 @@ pub(crate) mod apns; pub(crate) mod web; mod client; -pub use crate::client::response::*; pub use crate::client::*;