diff options
Diffstat (limited to 'src/list/action.rs')
-rw-r--r-- | src/list/action.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list/action.rs b/src/list/action.rs index dc72af3..09d015b 100644 --- a/src/list/action.rs +++ b/src/list/action.rs @@ -1,7 +1,7 @@ use std::convert::TryFrom; #[derive(Clone, Copy, Debug, PartialEq)] -pub enum Action { +pub(crate) enum Action { Break, Drop, Edit, @@ -14,7 +14,7 @@ pub enum Action { } impl Action { - pub fn as_string(self) -> String { + pub(crate) fn as_string(self) -> String { String::from(match self { Action::Break => "break", Action::Drop => "drop", @@ -28,7 +28,7 @@ impl Action { }) } - pub fn to_abbreviation(self) -> String { + pub(super) fn to_abbreviation(self) -> String { String::from(match self { Action::Break => "b", Action::Drop => "d", |