diff --git a/crates/api_common/src/build_response.rs b/crates/api_common/src/build_response.rs index 5ca819334..6fb96e113 100644 --- a/crates/api_common/src/build_response.rs +++ b/crates/api_common/src/build_response.rs @@ -87,7 +87,7 @@ pub async fn build_post_response( Ok(Json(PostResponse { post_view })) } -// TODO: this function is a mess and should be split up to handle email seperately +// TODO: this function is a mess and should be split up to handle email separately #[tracing::instrument(skip_all)] pub async fn send_local_notifs( mentions: Vec, diff --git a/crates/apub/src/http/community.rs b/crates/apub/src/http/community.rs index 73e620dbe..83ccdacf9 100644 --- a/crates/apub/src/http/community.rs +++ b/crates/apub/src/http/community.rs @@ -72,7 +72,7 @@ pub(crate) async fn get_apub_community_followers( } /// Returns the community outbox, which is populated by a maximum of 20 posts (but no other -/// activites like votes or comments). +/// activities like votes or comments). pub(crate) async fn get_apub_community_outbox( info: web::Path, context: Data, diff --git a/crates/db_schema/src/source/mod.rs b/crates/db_schema/src/source/mod.rs index 9a6e4941a..bccb7c8ce 100644 --- a/crates/db_schema/src/source/mod.rs +++ b/crates/db_schema/src/source/mod.rs @@ -44,6 +44,6 @@ pub mod tagline; /// value is not sent by Lemmy. Necessary for crates which rely on Rust API such as lemmy-stats-crawler. fn placeholder_apub_url() -> DbUrl { DbUrl(Box::new( - Url::parse("http://example.com").expect("parse placeholer url"), + Url::parse("http://example.com").expect("parse placeholder url"), )) } diff --git a/crates/utils/src/rate_limit/rate_limiter.rs b/crates/utils/src/rate_limit/rate_limiter.rs index 7c68003d8..d452fcbb3 100644 --- a/crates/utils/src/rate_limit/rate_limiter.rs +++ b/crates/utils/src/rate_limit/rate_limiter.rs @@ -212,7 +212,7 @@ impl RateLimitedGroup { now: InstantSecs, config: BucketConfig, ) -> bool { - #[allow(clippy::indexing_slicing)] // `EnumMap` has no `get` funciton + #[allow(clippy::indexing_slicing)] // `EnumMap` has no `get` function let bucket = &mut self.total[action_type]; let new_bucket = bucket.update(now, config); diff --git a/crates/utils/src/utils/validation.rs b/crates/utils/src/utils/validation.rs index da989a61b..23ef9744a 100644 --- a/crates/utils/src/utils/validation.rs +++ b/crates/utils/src/utils/validation.rs @@ -204,7 +204,7 @@ pub fn site_description_length_check(description: &str) -> LemmyResult<()> { ) } -/// Check minumum and maximum length of input string. If the string is too short or too long, the +/// Check minimum and maximum length of input string. If the string is too short or too long, the /// corresponding error is returned. /// /// HTML frontends specify maximum input length using `maxlength` attribute.