Misc updates and fixes (#7406)

* Misc updates and fixes

- Updated Rust to v1.96.1
- Updated all the crates
- Updated GitHub Actions
- Updated the web-vault to v2026.6.2
- Updated Alpine to v3.24
- Fixed several clippy lints
- The `send` UUID wrappers didn't need the special namespace anymore since an updated crate, so removed this extra mod.

Signed-off-by: BlackDex <black.dex@gmail.com>

* Update MSRV to v1.94.1

Signed-off-by: BlackDex <black.dex@gmail.com>

---------

Signed-off-by: BlackDex <black.dex@gmail.com>
This commit is contained in:
Mathijs van Veluw
2026-07-08 22:10:29 +02:00
committed by GitHub
parent 64d28ab66e
commit 169aa5efcc
22 changed files with 357 additions and 501 deletions
+3 -3
View File
@@ -2135,9 +2135,9 @@ impl CipherSyncData {
// Organization Sync does not support Folders, Favorites, or Archives.
// If these are set, it will cause issues in the web-vault.
CipherSyncType::Organization => {
cipher_folders = HashMap::with_capacity(0);
cipher_favorites = HashSet::with_capacity(0);
cipher_archives = HashMap::with_capacity(0);
cipher_folders = HashMap::new();
cipher_favorites = HashSet::new();
cipher_archives = HashMap::new();
}
}
+3 -3
View File
@@ -52,7 +52,7 @@ async fn get_org_events(org_id: OrganizationId, data: EventRange, headers: Admin
.map(Event::to_json)
.collect()
} else {
Vec::with_capacity(0)
Vec::new()
};
Ok(Json(json!({
@@ -78,7 +78,7 @@ async fn get_cipher_events(cipher_id: CipherId, data: EventRange, headers: Heade
Event::find_by_cipher_uuid(&cipher_id, &start_date, &end_date, &conn).await.iter().map(Event::to_json).collect()
} else {
Vec::with_capacity(0)
Vec::new()
};
Ok(Json(json!({
@@ -115,7 +115,7 @@ async fn get_user_events(
.map(Event::to_json)
.collect()
} else {
Vec::with_capacity(0)
Vec::new()
};
Ok(Json(json!({
+3 -3
View File
@@ -470,7 +470,7 @@ async fn get_org_collections_details(org_id: OrganizationId, headers: ManagerHea
.map(CollectionGroup::to_json_details_for_group)
.collect()
} else {
Vec::with_capacity(0)
Vec::new()
};
let mut json_object = col.to_json_details(&headers.user.uuid, None, &conn).await;
@@ -806,7 +806,7 @@ async fn get_org_collection_detail(
} else {
// The Bitwarden clients seem to call this API regardless of whether groups are enabled,
// so just act as if there are no groups.
Vec::with_capacity(0)
Vec::new()
};
// Generate a HashMap to get the correct MembershipType per user to determine the manage permission
@@ -2458,7 +2458,7 @@ async fn get_groups_data(
} else {
// The Bitwarden clients seem to call this API regardless of whether groups are enabled,
// so just act as if there are no groups.
Vec::with_capacity(0)
Vec::new()
};
Ok(Json(json!({