aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-01-16 02:41:20 -0600
committerNathan Ringo <nathan@remexre.com>2024-01-16 02:41:20 -0600
commitf6039315ea920631b117747ca857231e03ec66b9 (patch)
tree60816ca1c41f58fefa312d69f467456607251023 /src/bin
parent387087b3b2359ad7f434a16f5682ef781539e786 (diff)
Lower-case the X.500s.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/add-student-x500s.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/add-student-x500s.rs b/src/bin/add-student-x500s.rs
index 14023b1..d39568c 100644
--- a/src/bin/add-student-x500s.rs
+++ b/src/bin/add-student-x500s.rs
@@ -99,7 +99,7 @@ async fn main() -> Result<()> {
.map(|record| {
let email = &record[3];
if let Some(x500) = email.strip_suffix("@umn.edu") {
- Ok(x500.to_string())
+ Ok(x500.to_lowercase())
} else {
bail!("not a valid UMN email: {:?}", email)
}