chore: replace pub with pub(crate) when possible

This commit is contained in:
2021-06-06 19:14:28 -05:00
parent b7b213b6b9
commit 878edd4082
15 changed files with 196 additions and 192 deletions

View File

@@ -7,11 +7,11 @@ pub struct Joypad {
}
impl Joypad {
pub fn interrupt(&self) -> bool {
pub(crate) fn interrupt(&self) -> bool {
self.interrupt
}
pub fn set_interrupt(&mut self, value: bool) {
pub(crate) fn set_interrupt(&mut self, value: bool) {
self.interrupt = value;
}
}