From 98bcc339b1d08078ccf83c5251a65087cae81fc1 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Fri, 10 Jul 2020 11:45:33 -0400 Subject: [PATCH] Rename `get_uri` to `uri` (#393) * Rename `get_uri` to `uri` * Fix doc test --- tonic/src/transport/channel/endpoint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tonic/src/transport/channel/endpoint.rs b/tonic/src/transport/channel/endpoint.rs index 3988b91..c2bcf16 100644 --- a/tonic/src/transport/channel/endpoint.rs +++ b/tonic/src/transport/channel/endpoint.rs @@ -257,9 +257,9 @@ impl Endpoint { /// # use http::Uri; /// let endpoint = Endpoint::from_static("https://example.com"); /// - /// assert_eq!(endpoint.get_uri(), &Uri::from_static("https://example.com")); + /// assert_eq!(endpoint.uri(), &Uri::from_static("https://example.com")); /// ``` - pub fn get_uri(&self) -> &Uri { + pub fn uri(&self) -> &Uri { &self.uri } }