From c4db06af3e2dee883f310a21ec9c528da0b755d2 Mon Sep 17 00:00:00 2001 From: Henauxg <19689618+Henauxg@users.noreply.github.com> Date: Tue, 7 Mar 2023 09:31:28 +0100 Subject: [doc] Add missing use directive in doc strings --- src/client/connection.rs | 1 + src/server.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/client/connection.rs b/src/client/connection.rs index 05ab185..4328d73 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -116,6 +116,7 @@ impl ConnectionConfiguration { /// /// Connect to an IPv4 server hosted on localhost (127.0.0.1), which is listening on port 6000. Use 0 as a local bind port to let the OS assign a port. /// ``` + /// use std::net::{IpAddr, Ipv4Addr}; /// use bevy_quinnet::client::connection::ConnectionConfiguration; /// let config = ConnectionConfiguration::from_ips( /// IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), diff --git a/src/server.rs b/src/server.rs index ae3bd82..f099f26 100644 --- a/src/server.rs +++ b/src/server.rs @@ -93,6 +93,7 @@ impl ServerConfiguration { /// /// Listen on port 6000, on an IPv4 endpoint, for all incoming IPs. /// ``` + /// use std::net::{IpAddr, Ipv4Addr}; /// use bevy_quinnet::server::ServerConfiguration; /// let config = ServerConfiguration::from_ip(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 6000); /// ``` -- cgit v1.2.3