]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/comment/create.rs
Fix API and clippy warnings
[lemmy.git] / crates / api_crud / src / comment / create.rs
index 74ef27f15c1fd1f57406d09d1978023b2fc0f7b1..57c850135d72d866609da40eb295c0d16200964d 100644 (file)
@@ -18,7 +18,7 @@ use lemmy_utils::{
   ConnectionId,
   LemmyError,
 };
-use lemmy_websocket::{messages::SendComment, LemmyContext, UserOperation};
+use lemmy_websocket::{messages::SendComment, LemmyContext, UserOperationCrud};
 
 #[async_trait::async_trait(?Send)]
 impl PerformCrud for CreateComment {
@@ -158,7 +158,7 @@ impl PerformCrud for CreateComment {
     };
 
     context.chat_server().do_send(SendComment {
-      op: UserOperation::CreateComment,
+      op: UserOperationCrud::CreateComment,
       comment: res.clone(),
       websocket_id,
     });