diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-30 22:57:28 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-30 22:57:28 -0500 |
commit | a5b7f59b19052b69f3ada89e4b07c1fb6dbfaf34 (patch) | |
tree | e1816211f43d807d4a4fce3a85ea7c2a622a15a2 | |
parent | 04b141ae3409c111c65466252e0987e65aab3363 (diff) | |
download | pty-process-a5b7f59b19052b69f3ada89e4b07c1fb6dbfaf34.tar.gz pty-process-a5b7f59b19052b69f3ada89e4b07c1fb6dbfaf34.zip |
make pts private again
-rw-r--r-- | src/blocking/pty.rs | 3 | ||||
-rw-r--r-- | src/pty.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/blocking/pty.rs b/src/blocking/pty.rs index a94226b..d864bd6 100644 --- a/src/blocking/pty.rs +++ b/src/blocking/pty.rs @@ -17,8 +17,7 @@ impl Pty { Ok(crate::sys::set_term_size(self, size)?) } - #[must_use] - pub fn pts(&self) -> &std::fs::File { + pub(crate) fn pts(&self) -> &std::fs::File { &self.pts } } @@ -18,8 +18,7 @@ impl Pty { Ok(crate::sys::set_term_size(self, size)?) } - #[must_use] - pub fn pts(&self) -> &std::fs::File { + pub(crate) fn pts(&self) -> &std::fs::File { &self.pts } } |