summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerris Tseng <ferris@navapbc.com>2020-05-16 17:37:14 -0400
committerFerris Tseng <ferris@navapbc.com>2020-05-16 17:37:14 -0400
commitbbc48f85bac7565a11b77313f6aed7c44b9ebeed (patch)
treefe553a3e0e9dc9875a425ab465b34919f86f30da
parentba53395d88f9820fcd26b05192845d2eca365217 (diff)
downloadrust-ipfs-api-master.tar.gz
rust-ipfs-api-master.tar.xz
updating documentationHEADmaster
-rw-r--r--ipfs-api/src/client/internal.rs6
-rw-r--r--ipfs-api/src/lib.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/ipfs-api/src/client/internal.rs b/ipfs-api/src/client/internal.rs
index fcc4ddb..2c0d2af 100644
--- a/ipfs-api/src/client/internal.rs
+++ b/ipfs-api/src/client/internal.rs
@@ -88,7 +88,7 @@ impl IpfsClient {
///
#[deprecated(
since = "0.7.2",
- note = "Please use [`client::TryFromUri::from_host_and_port`]. Removing in next major version."
+ note = "Please use [`TryFromUri::from_host_and_port`]. Removing in next major version."
)]
pub fn new(host: &str, port: u16) -> Result<IpfsClient, InvalidUri> {
let uri = format!("http://{}:{}", host, port);
@@ -99,7 +99,7 @@ impl IpfsClient {
#[deprecated(
since = "0.7.2",
- note = "Please use [`client::TryFromUri::from_uri`]. Removing in next major version."
+ note = "Please use [`TryFromUri::from_uri`]. Removing in next major version."
)]
pub fn new_from_uri(uri: &str) -> Result<IpfsClient, InvalidUri> {
Self::from_str(uri)
@@ -107,7 +107,7 @@ impl IpfsClient {
#[deprecated(
since = "0.7.2",
- note = "Please use [`client::TryFromUri::from_socket`]. Removing in next major version."
+ note = "Please use [`TryFromUri::from_socket`]. Removing in next major version."
)]
pub fn from(socket_addr: SocketAddr) -> IpfsClient {
Self::from_socket(Scheme::HTTP, socket_addr).unwrap()
diff --git a/ipfs-api/src/lib.rs b/ipfs-api/src/lib.rs
index 806226e..d74a913 100644
--- a/ipfs-api/src/lib.rs
+++ b/ipfs-api/src/lib.rs
@@ -154,7 +154,7 @@ extern crate failure;
extern crate serde;
-pub use crate::client::IpfsClient;
+pub use crate::client::{IpfsClient, TryFromUri};
pub use crate::request::{KeyType, Logger, LoggingLevel, ObjectTemplate};
mod client;