Skip to content

Commit

Permalink
Merge pull request #80 from sa68ru/master
Browse files Browse the repository at this point in the history
Add pub access for Ref data
  • Loading branch information
rossnomann authored Jun 17, 2024
2 parents 2eab40c + 3e8c70e commit f0477a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl Context {
/// Keep in mind that each time a handler is called with `Ref<T>` as an argument,
/// the underlying value is cloned.
#[derive(Clone)]
pub struct Ref<T: Clone>(T);
pub struct Ref<T: Clone>(pub T);

impl<T: Clone> Ref<T> {
pub(super) fn new(object: T) -> Self {
Expand Down

0 comments on commit f0477a9

Please sign in to comment.