Skip to content

Commit

Permalink
aw-client-rust: Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-bjareholt committed Mar 29, 2020
1 parent 6f5200d commit 718ebfd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aw-client-rust/src/lib.rs
Expand Up @@ -28,15 +28,15 @@ pub struct AwClient {

impl AwClient {
pub fn new(ip: &str, port: &str, name: &str) -> AwClient {
let baseurl = String::from(format!("http://{}:{}", ip, port));
let baseurl = format!("http://{}:{}", ip, port);
let client = reqwest::blocking::Client::new();
let hostname = gethostname::gethostname().into_string().unwrap();
return AwClient {
client: client,
baseurl: baseurl,
AwClient {
client,
baseurl,
name: name.to_string(),
hostname: hostname,
};
hostname,
}
}

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

0 comments on commit 718ebfd

Please sign in to comment.