File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ mod sealed {
71
71
use prelude:: * ;
72
72
use ln:: features:: Features ;
73
73
74
- /// The context in which [`Features`] are applicable. Defines which features are required and
75
- /// which are optional for the context.
74
+ /// The context in which [`Features`] are applicable. Defines which features are known to the
75
+ /// implementation, though specification of them as required or optional is up to the code
76
+ /// constructing a features object.
76
77
pub trait Context {
77
- /// Bitmask for selecting features that are known to the implementation, regardless of
78
- /// whether each feature is required or optional.
78
+ /// Bitmask for selecting features that are known to the implementation.
79
79
const KNOWN_FEATURE_MASK : & ' static [ u8 ] ;
80
80
}
81
81
@@ -89,8 +89,6 @@ mod sealed {
89
89
90
90
impl Context for $context {
91
91
const KNOWN_FEATURE_MASK : & ' static [ u8 ] = & [
92
- // Similar as above, but set both flags for each feature regardless of whether
93
- // the feature is required or optional.
94
92
$(
95
93
0b00_00_00_00 $( |
96
94
<Self as $known_feature>:: REQUIRED_MASK |
You can’t perform that action at this time.
0 commit comments