Skip to content

Commit

Permalink
Re-export ureq_proto::ArrayVec
Browse files Browse the repository at this point in the history
  • Loading branch information
algesten committed Nov 26, 2024
1 parent 66e1f0a commit 7eae001
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/timings.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::fmt;
use std::sync::Arc;
use ureq_proto::ArrayVec;

use crate::config::Timeouts;
use crate::transport::time::{Duration, Instant};
use crate::util::ArrayVec;

/// The various timeouts.
///
Expand Down
4 changes: 3 additions & 1 deletion src/unversioned/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use http::Uri;
use crate::config::Config;
use crate::http;
use crate::transport::NextTimeout;
use crate::util::{ArrayVec, SchemeExt, UriExt};
use crate::util::{SchemeExt, UriExt};
use crate::Error;

/// Trait for name resolvers.
Expand All @@ -41,6 +41,8 @@ pub trait Resolver: Debug + Send + Sync + 'static {
/// Max number of socket addresses to keep from the resolver.
const MAX_ADDRS: usize = 16;

pub use ureq_proto::ArrayVec;

/// Addresses as returned by the resolver.
pub type ResolvedSocketAddrs = ArrayVec<SocketAddr, MAX_ADDRS>;

Expand Down
2 changes: 0 additions & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use crate::http;
use crate::proxy::Proto;
use crate::Error;

pub use ureq_proto::ArrayVec;

pub(crate) mod private {
pub trait Private {}
}
Expand Down

0 comments on commit 7eae001

Please sign in to comment.