Skip to content

Commit ae73adf

Browse files
committed
Make find_parent_scope public
Signed-off-by: Aaron Erhardt <[email protected]>
1 parent 2e2c150 commit ae73adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/yew/src/html/component/scope.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl AnyScope {
141141
/// Attempts to find a parent scope of a certain type
142142
///
143143
/// Returns [`None`] if no parent scope with the specified type was found.
144-
pub(crate) fn find_parent_scope<C: BaseComponent>(&self) -> Option<Scope<C>> {
144+
pub fn find_parent_scope<C: BaseComponent>(&self) -> Option<Scope<C>> {
145145
let expected_type_id = TypeId::of::<C>();
146146
iter::successors(Some(self), |scope| scope.get_parent())
147147
.filter(|scope| scope.get_type_id() == &expected_type_id)

0 commit comments

Comments
 (0)