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

Commit 88c3692

Browse files
committed
Updating to newest lambda-runtime-types
1 parent e2b5df0 commit 88c3692

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lambda-aws-sso-google-sync"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = ["Marc Mettke <marc@itmettke.de>"]
55
edition = "2021"
66
description = "Syncs Users and Groups from Google Workspace to AWS SSO"
@@ -18,7 +18,7 @@ test = ["lambda-runtime-types/test"]
1818
anyhow = "1.0"
1919
async-trait = "0.1"
2020
jsonwebtoken = "7.2"
21-
lambda-runtime-types = "0.2"
21+
lambda-runtime-types = "0.3"
2222
log = "0.4"
2323
regex = "1.5"
2424
reqwest = { version = "0.11", features = ["json", "rustls-tls"] }

src/sync.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ impl<'a> SyncOp<'a> {
180180
.aws_group_lookup
181181
.iter()
182182
.filter(|(id, _)| !self.google_group_lookup.contains_key(*id))
183-
.filter_map(|(id, u)| Some((id.clone(), u.display_name.clone(), u.id.as_ref()?.clone())))
183+
.filter_map(|(id, u)| {
184+
Some((id.clone(), u.display_name.clone(), u.id.as_ref()?.clone()))
185+
})
184186
.collect::<Vec<_>>();
185187
for (id, display_name, aws_id) in to_delete {
186188
log::info!("Deleting group: {}", display_name);

0 commit comments

Comments
 (0)