diff options
| author | Ubuntu <github@matdoes.dev> | 2022-11-11 21:04:18 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-11-11 21:04:18 +0000 |
| commit | 4a1ec068fc13393e249853403085be6958a807a4 (patch) | |
| tree | bdaf6de36f1682eef0839122af1ba9037fa95165 /azalea-protocol/src/lib.rs | |
| parent | dc62ada865db6534e7c4a5a958d82c44e42bf089 (diff) | |
| download | azalea-drasl-4a1ec068fc13393e249853403085be6958a807a4.tar.xz | |
improved docs
Diffstat (limited to 'azalea-protocol/src/lib.rs')
| -rwxr-xr-x | azalea-protocol/src/lib.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index 84306142..0fae75b1 100755 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -6,6 +6,8 @@ //! //! [`azalea`]: https://crates.io/crates/azalea //! [`azalea_client`]: https://crates.io/crates/azalea-client +//! +//! See [`crate::connect::Connection`] for an example. // these two are necessary for thiserror backtraces #![feature(error_generic_member_access)] @@ -57,15 +59,6 @@ impl<'a> TryFrom<&'a str> for ServerAddress { } } -#[cfg(feature = "connecting")] -pub async fn connect(address: ServerAddress) -> Result<(), Box<dyn std::error::Error>> { - use log::debug; - - let resolved_address = resolver::resolve_address(&address).await; - debug!("Resolved address: {:?}", resolved_address); - Ok(()) -} - #[cfg(test)] mod tests { use std::io::Cursor; |
