Merge branch 'unignore-feddest-doc-test' into 'next'

enable FedDest doc-test

See merge request famedly/conduit!349
This commit is contained in:
Timo Kösters 2022-05-28 20:43:37 +00:00
commit 89eb54b7ff
1 changed files with 5 additions and 1 deletions

View File

@ -79,12 +79,16 @@ use tracing::{debug, error, info, trace, warn};
/// was no port specified to construct a SocketAddr with.
///
/// # Examples:
/// ```rust,ignore
/// ```rust
/// # use conduit::server_server::FedDest;
/// # fn main() -> Result<(), std::net::AddrParseError> {
/// FedDest::Literal("198.51.100.3:8448".parse()?);
/// FedDest::Literal("[2001:db8::4:5]:443".parse()?);
/// FedDest::Named("matrix.example.org".to_owned(), "".to_owned());
/// FedDest::Named("matrix.example.org".to_owned(), ":8448".to_owned());
/// FedDest::Named("198.51.100.5".to_owned(), "".to_owned());
/// # Ok(())
/// # }
/// ```
#[derive(Clone, Debug, PartialEq)]
pub enum FedDest {