]> Untitled Git - lemmy.git/blobdiff - crates/utils/src/lib.rs
Fix clippy error upper_case_acronyms
[lemmy.git] / crates / utils / src / lib.rs
index 6d8265aa3fbb95a026077102f3356a359014f320..e64271568118e5399f858f3d1d7417a77ed4c989 100644 (file)
@@ -23,7 +23,7 @@ pub type ConnectionId = usize;
 pub type PostId = i32;
 pub type CommunityId = i32;
 pub type UserId = i32;
-pub type IPAddr = String;
+pub type IpAddr = String;
 
 #[macro_export]
 macro_rules! location_info {
@@ -39,13 +39,13 @@ macro_rules! location_info {
 
 #[derive(Debug, Error)]
 #[error("{{\"error\":\"{message}\"}}")]
-pub struct APIError {
+pub struct ApiError {
   pub message: String,
 }
 
-impl APIError {
+impl ApiError {
   pub fn err(msg: &str) -> Self {
-    APIError {
+    ApiError {
       message: msg.to_string(),
     }
   }