]> Untitled Git - lemmy.git/commit
Adding a vector indexing check to prevent panics. Fixes #2753 (#2754)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 28 Feb 2023 11:34:50 +0000 (06:34 -0500)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2023 11:34:50 +0000 (12:34 +0100)
commit8c0c1628e08f8db4f602f1b69a7f94ba60bfc2d5
treeee8d03e110a6899b3e1a670b871e84396a380a2a
parent4c77c84b601cd10b09079e34fe9a6fbbe7d8525b
Adding a vector indexing check to prevent panics. Fixes #2753 (#2754)

* Adding a vector indexing check to prevent panics. Fixes #2753

* Fixing for new clippy lint.

* Externalizing get_top_mod check. Adding get_first clippy lint

* Removing unit tests get(0)s

* Fixing some firsts manually
14 files changed:
.drone.yml
crates/api/src/community/transfer.rs
crates/api_common/src/request.rs
crates/api_common/src/utils.rs
crates/api_crud/src/community/delete.rs
crates/apub/src/collections/community_featured.rs
crates/apub/src/collections/community_outbox.rs
crates/db_schema/src/impls/actor_language.rs
crates/db_schema/src/impls/comment.rs
crates/utils/src/email.rs
crates/utils/src/utils/mention.rs
scripts/fix-clippy.sh
src/api_routes_websocket.rs
src/lib.rs