Skip to content

Commit 91208e2

Browse files
committed
starlark: Export the RecordTypeMatcher for users in the public API
This fixes facebook/starlark-rust#120. Since it allows users now to compare records from different files.
1 parent 5db1d07 commit 91208e2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

starlark-rust/starlark/src/values/types/record.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ pub(crate) mod ty_record_type;
5050

5151
pub use crate::values::record::instance::Record;
5252
pub use crate::values::record::record_type::RecordType;
53+
pub use crate::values::record::matcher::RecordTypeMatcher;

starlark-rust/starlark/src/values/types/record/matcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use crate::values::typing::type_compiled::matcher::TypeMatcherDyn;
3030

3131
#[derive(Hash, Debug, Eq, PartialEq, Clone, Dupe, Allocative, Pagable)]
3232
#[pagable_typetag(TypeMatcherDyn)]
33-
pub(crate) struct RecordTypeMatcher {
33+
pub struct RecordTypeMatcher {
3434
pub(crate) id: TypeInstanceId,
3535
}
3636

0 commit comments

Comments
 (0)