Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit e5a13da

Browse files
committed
cargo fmt and clippy changes
1 parent 36756bb commit e5a13da

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

src/commands/serve.rs

+4-15
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,12 @@ mod controller {
255255
use fpm::library::http;
256256
let response = match http::_get(url).await {
257257
Ok(some_response) => some_response,
258-
Err(e) => {
259-
panic!("failed to fetch data, error: {}", e)
260-
}
258+
Err(e) => panic!("failed to fetch data, error: {}", e)
261259
};
262260

263261
match serde_json::from_str(response.as_str()) {
264262
Ok(v) => Ok(v),
265-
Err(e) => panic!(
266-
"failed parsing json from response text, error: {}",
267-
e
268-
),
263+
Err(e) => panic!("failed parsing json from response text, error: {}", e),
269264
}
270265
}
271266

@@ -289,10 +284,7 @@ mod controller {
289284

290285
let url = match url::Url::parse(controller_api.as_str()) {
291286
Ok(safe_url) => safe_url,
292-
Err(e) => panic!(
293-
"Invalid get-package API endpoint, Parse error: {}",
294-
e
295-
),
287+
Err(e) => panic!("Invalid get-package API endpoint, Parse error: {}", e),
296288
};
297289

298290
make_get_request(url).await
@@ -315,10 +307,7 @@ mod controller {
315307

316308
let url = match url::Url::parse(controller_api.as_str()) {
317309
Ok(safe_url) => safe_url,
318-
Err(e) => panic!(
319-
"Invalid fpm_ready API endpoint, Parse error: {}",
320-
e
321-
),
310+
Err(e) => panic!("Invalid fpm_ready API endpoint, Parse error: {}", e),
322311
};
323312

324313
// This request should be put request for fpm_ready API to update the instance status to ready

0 commit comments

Comments
 (0)