Skip to content

Commit

Permalink
clean up re-exports a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
wfraser committed Dec 4, 2024
1 parent 631ed25 commit 70cb6e0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/default_async_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use std::str::FromStr;
use std::sync::Arc;
use bytes::Bytes;
use futures::{FutureExt, TryFutureExt, TryStreamExt};
use crate::async_client_trait::{AppAuthClient, HttpClient, HttpRequestResultRaw, NoauthClient, TeamAuthClient, UserAuthClient};
use crate::client_trait_common::{HttpRequest, TeamSelect};
use crate::async_client_trait::{AppAuthClient, HttpClient, HttpRequest, HttpRequestResultRaw,
NoauthClient, TeamAuthClient, TeamSelect, UserAuthClient};
use crate::default_client_common::impl_set_path_root;
use crate::Error;
use crate::oauth2::{Authorization, TokenCache};
Expand Down
4 changes: 2 additions & 2 deletions src/default_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use std::fmt::Write;
use std::str::FromStr;
use std::sync::Arc;
use futures::FutureExt;
use crate::client_trait::{AppAuthClient, HttpClient, HttpRequestResultRaw, NoauthClient, TeamAuthClient, UserAuthClient};
use crate::client_trait_common::{HttpRequest, TeamSelect};
use crate::client_trait::{AppAuthClient, HttpClient, HttpRequest, HttpRequestResultRaw,
NoauthClient, TeamAuthClient, TeamSelect, UserAuthClient};
use crate::default_client_common::impl_set_path_root;

macro_rules! impl_update_token {
Expand Down
13 changes: 6 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,29 @@ if_feature! { "default_client",
if_feature! { "default_async_client", pub mod default_async_client; }

#[cfg(any(feature = "default_client", feature = "default_async_client"))]
pub(crate) mod default_client_common;
mod default_client_common;

pub mod client_trait_common;
mod client_trait_common;

pub mod client_trait;

pub mod async_client_trait;

pub(crate) mod client_helpers;
mod client_helpers;

pub mod oauth2;

mod generated;

// You need to run the Stone generator to create this module.
mod generated;
pub use generated::*;

#[cfg(feature = "async_routes")]
#[cfg(not(feature = "sync_routes_in_root"))]
pub use generated::async_routes::*;
pub use async_routes::*;

#[cfg(feature = "sync_routes")]
#[cfg(feature = "sync_routes_in_root")]
pub use generated::sync_routes::*;
pub use sync_routes::*;

mod error;
pub use error::{BoxedError, Error, NoError};
1 change: 0 additions & 1 deletion tests/noop_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::fmt::{Debug, Display, Formatter};
use dropbox_sdk::client_trait::*;
use dropbox_sdk::client_trait_common::HttpRequest;

macro_rules! noop_client {
($name:ident) => {
Expand Down

0 comments on commit 70cb6e0

Please sign in to comment.