diff options
author | Dylan McKay <me@dylanmckay.io> | 2018-12-22 23:31:52 +1300 |
---|---|---|
committer | doug tangren <d.tangren@gmail.com> | 2018-12-22 19:31:52 +0900 |
commit | 1c2665988c7cb90d77488ea9e1cb3f9bf4fb7bf8 (patch) | |
tree | 7bcb937186a9b5a6d7f1415b622cb0bc82759b78 /src/lib.rs | |
parent | bf79d766cd9eaf57b2674629659fd298ad04e39f (diff) |
Remove an unused type parameter from the 'nocache' function (#135)
* Remove an unused type parameter from the 'nocache' function
The function is currently unusable because the type parameter has no
uses or bounds.
* Fix existing rustfmt violation
Semicolons need to be added to return statements.
Without this, the build fails.
* Replace call of Uri::port to Uri::port_part
The former is deprecated in favor of the latter.
This causes a deprecation warning when compiling shiplift.
This patch fixes the deprecation warning.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -804,7 +804,7 @@ impl Docker { "{}://{}:{}", host.scheme_part().map(|s| s.as_str()).unwrap(), host.host().unwrap().to_owned(), - host.port().unwrap_or(80) + host.port_part().unwrap_or(80) ); match host.scheme_part().map(|s| s.as_str()) { |