]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/comment/update.rs
Fix API and clippy warnings
[lemmy.git] / crates / api_crud / src / comment / update.rs
index 46d99e936785470bf73812012440814644fb14c0..fb6bdaf1128ec37ca34601b35564b9a4003227c0 100644 (file)
@@ -17,7 +17,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 EditComment {
@@ -93,7 +93,7 @@ impl PerformCrud for EditComment {
     };
 
     context.chat_server().do_send(SendComment {
-      op: UserOperation::EditComment,
+      op: UserOperationCrud::EditComment,
       comment: res.clone(),
       websocket_id,
     });