From 0cbd5dcb8e33e6ec0943b4b2a477cf86c45ac414 Mon Sep 17 00:00:00 2001 From: Nia Calia-Bogan Date: Wed, 22 Dec 2021 22:47:32 -0500 Subject: [PATCH] rustfmt --- src/api/rcos/meetings/creation/context.rs | 2 +- src/web/services/user/profile.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/api/rcos/meetings/creation/context.rs b/src/api/rcos/meetings/creation/context.rs index da422f60..9ff61b80 100644 --- a/src/api/rcos/meetings/creation/context.rs +++ b/src/api/rcos/meetings/creation/context.rs @@ -26,7 +26,7 @@ impl CreationContext { send_query::(creation_context::Variables { host: host.map(|h| vec![h]).unwrap_or(vec![]), today: Utc::today().naive_utc(), - include_semesters + include_semesters, }) .await } diff --git a/src/web/services/user/profile.rs b/src/web/services/user/profile.rs index 89368fe7..3e9c3aae 100644 --- a/src/web/services/user/profile.rs +++ b/src/web/services/user/profile.rs @@ -247,13 +247,16 @@ async fn save_changes( // Check that the current user role can switch to the submitted role. // First get the json version of the role as a string. - let role_json: String = json!(role).as_str().expect("Role serialized to JSON string").to_string(); + let role_json: String = json!(role) + .as_str() + .expect("Role serialized to JSON string") + .to_string(); // Then index into the available roles on the context with the selected role to check availability. if form.template["roles"][&role_json] != json!(true) { return Err(TelescopeError::BadRequest { header: "Invalid Role Selection".into(), message: "The selected role is not available at this time".into(), - show_status_code: false + show_status_code: false, }); }