diff options
author | Melody Horn <melody@boringcactus.com> | 2021-03-27 17:02:11 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-03-27 17:02:11 -0600 |
commit | 86c271eb2f9c0b3e1e2a35d26a2dca37435b5b8c (patch) | |
tree | 5adc564056cf349793f4b9ffd6c70bf908117cc1 /src/makefile/command_line.rs | |
parent | 5197d769bb2fea50975122a4ebba89c07c712839 (diff) | |
download | makers-86c271eb2f9c0b3e1e2a35d26a2dca37435b5b8c.tar.gz makers-86c271eb2f9c0b3e1e2a35d26a2dca37435b5b8c.zip |
why `pub` when you can `pub(crate)`?
Diffstat (limited to 'src/makefile/command_line.rs')
-rw-r--r-- | src/makefile/command_line.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/makefile/command_line.rs b/src/makefile/command_line.rs index 9cc0b8e..6b42105 100644 --- a/src/makefile/command_line.rs +++ b/src/makefile/command_line.rs @@ -26,7 +26,7 @@ fn execute_command_line(command_line: &str, ignore_errors: bool) -> Result<ExitS } #[derive(PartialEq, Eq, Clone, Debug)] -pub struct CommandLine { +pub(crate) struct CommandLine { /// If the command prefix contains a <hyphen-minus>, or the -i option is present, or /// the special target .IGNORE has either the current target as a prerequisite or has /// no prerequisites, any error found while executing the command shall be ignored. @@ -43,7 +43,7 @@ pub struct CommandLine { } impl CommandLine { - pub fn from(mut line: TokenString) -> Self { + pub(crate) fn from(mut line: TokenString) -> Self { let mut ignore_errors = false; let mut silent = false; let mut always_execute = false; @@ -69,7 +69,7 @@ impl CommandLine { } } - pub fn execute(&self, file: &Makefile, target: &Target) { + pub(crate) fn execute(&self, file: &Makefile, target: &Target) { let ignore_error = self.ignore_errors || file.args.ignore_errors || file.special_target_has_prereq(".IGNORE", &target.name); |