Browse Source

remove whitespace to make more compact

Steven Jacobs 2 years ago
parent
commit
eb6d2669e5
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/linode.rs

+ 0 - 5
src/linode.rs

@@ -21,16 +21,13 @@ pub mod instances {
 
     pub fn index() -> Vec<Instance> {
         let mut res = helper::gen_request("get", "linode/instances");
-
         let results: ResponseInstances = res.json().expect("Can't parse API data");
-
         results.linodes
     }
 
     pub fn get(id: &u32) -> Instance {
         let path = format!("linode/instances/{}", id);
         let mut res = helper::gen_request("get", path.as_str());
-
         res.json().expect("Can't parse API data")
     }
 }
@@ -64,9 +61,7 @@ pub mod types {
 
     pub fn index() -> Vec<Type> {
         let mut res = helper::gen_request("get", "linode/types");
-
         let results: ResponseTypes = res.json().expect("Can't parse API data");
-
         results.types
     }
 }