Skip to content

Commit 718ebfd

Browse files
aw-client-rust: Clippy fixes
1 parent 6f5200d commit 718ebfd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

aw-client-rust/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ pub struct AwClient {
2828

2929
impl AwClient {
3030
pub fn new(ip: &str, port: &str, name: &str) -> AwClient {
31-
let baseurl = String::from(format!("http://{}:{}", ip, port));
31+
let baseurl = format!("http://{}:{}", ip, port);
3232
let client = reqwest::blocking::Client::new();
3333
let hostname = gethostname::gethostname().into_string().unwrap();
34-
return AwClient {
35-
client: client,
36-
baseurl: baseurl,
34+
AwClient {
35+
client,
36+
baseurl,
3737
name: name.to_string(),
38-
hostname: hostname,
39-
};
38+
hostname,
39+
}
4040
}
4141

4242
pub fn get_bucket(&self, bucketname: &str) -> Result<Bucket, reqwest::Error> {

0 commit comments

Comments
 (0)