Jelajahi Sumber

remove irrelevant 'ParseError::MissingBody', as note command doesn't necessarily require the body

chaz-kiker 3 tahun lalu
induk
melakukan
8bdf55fc83
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      parser/src/command/note.rs

+ 0 - 2
parser/src/command/note.rs

@@ -10,14 +10,12 @@ pub enum NoteCommand {
 #[derive(PartialEq, Eq, Debug)]
 pub enum ParseError {
     MissingTitle,
-    MissingBody,
 }
 impl std::error::Error for ParseError {}
 impl fmt::Display for ParseError {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         match self {
             ParseError::MissingTitle => write!(f, "missing required summary title"),
-            ParseError::MissingBody => write!(f, "missing summary notes"),
         }
     }
 }