Skip to content

Commit 6dbf89b

Browse files
committed
Make TimeLockInfo fields pub(crate)
We should not need access to these feilds outside of the crate.
1 parent 982fc4d commit 6dbf89b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/miniscript/types/extra_props.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ use crate::{script_num_size, MiniscriptKey, Terminal};
1414
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Default, Hash)]
1515
pub struct TimeLockInfo {
1616
/// csv with heights
17-
pub csv_with_height: bool,
17+
pub(crate) csv_with_height: bool,
1818
/// csv with times
19-
pub csv_with_time: bool,
19+
pub(crate) csv_with_time: bool,
2020
/// cltv with heights
21-
pub cltv_with_height: bool,
21+
pub(crate) cltv_with_height: bool,
2222
/// cltv with times
23-
pub cltv_with_time: bool,
23+
pub(crate) cltv_with_time: bool,
2424
/// combination of any heightlocks and timelocks
25-
pub contains_combination: bool,
25+
pub(crate) contains_combination: bool,
2626
}
2727

2828
/// Helper struct to store information about op code limits. Note that this only

0 commit comments

Comments
 (0)