File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ pub(crate) const fn is_nonoverlapping(
163
163
164
164
pub use predicates:: * ;
165
165
166
- pub ( crate ) trait MetadataPredicates < T > where T : ?Sized {
166
+ pub trait MetadataPredicates < T > where T : ?Sized {
167
167
/// If the metadata is the length of a slice or str, run the map function.
168
168
fn map_len < U , F > ( metadata : * const Self , map : F ) -> Option < U >
169
169
where
@@ -193,7 +193,10 @@ impl<T> MetadataPredicates<T> for () {
193
193
}
194
194
}
195
195
196
- impl < T > MetadataPredicates < T > for usize where T : ?Sized {
196
+ impl < T > MetadataPredicates < T > for usize
197
+ where
198
+ T : ?Sized
199
+ {
197
200
/// Return the result of the map function.
198
201
fn map_len < U , F > ( metadata : * const Self , map : F ) -> Option < U >
199
202
where
@@ -211,7 +214,10 @@ impl<T> MetadataPredicates<T> for usize where T: ?Sized{
211
214
}
212
215
}
213
216
214
- impl < T > MetadataPredicates < T > for crate :: ptr:: DynMetadata < T > where T : ?Sized {
217
+ impl < T > MetadataPredicates < T > for crate :: ptr:: DynMetadata < T >
218
+ where
219
+ T : ?Sized
220
+ {
215
221
/// Not a length. Return None.
216
222
fn map_len < U , F > ( _metadata : * const Self , _map : F ) -> Option < U >
217
223
where
@@ -225,7 +231,7 @@ impl<T> MetadataPredicates<T> for crate::ptr::DynMetadata<T> where T: ?Sized {
225
231
where
226
232
F : Fn ( * const crate :: ptr:: DynMetadata < T > ) -> U ,
227
233
{
228
- Some ( map ( metadata) )
234
+ Some ( map ( metadata) )
229
235
}
230
236
}
231
237
You can’t perform that action at this time.
0 commit comments