We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833f314 commit 7802f08Copy full SHA for 7802f08
src/config.rs
@@ -251,7 +251,7 @@ impl ServerConfig {
251
252
/// Get [SIP002](https://github.com/shadowsocks/shadowsocks-org/issues/27) URL
253
pub fn to_url(&self) -> String {
254
- let user_info = format!("{}:{}", self.method().to_string(), self.password());
+ let user_info = format!("{}:{}", self.method(), self.password());
255
let encoded_user_info = encode_config(&user_info, URL_SAFE_NO_PAD);
256
257
let mut url = format!("ss://{}@{}", encoded_user_info, self.addr());
0 commit comments