@@ -191,11 +191,11 @@ impl VortexSession {
191191
192192 /// Inserts a session variable of type `V`, replacing any existing variable of that type.
193193 ///
194- /// This is the internal copy-on-write insert primitive behind [`with_some`](Self::with_some) and
194+ /// This is the copy-on-write insert primitive behind [`with_some`](Self::with_some) and
195195 /// [`get_mut`](SessionExt::get_mut); it is not public, so a variable can only enter the type-map
196196 /// through those (or through a default inserted by [`get`](SessionExt::get)). The mutation is
197197 /// applied in place to the shared backing store, so it is visible through every clone.
198- fn register < V : VortexSessionVar > ( & self , var : V ) {
198+ pub fn register < V : VortexSessionVar > ( & self , var : V ) {
199199 let var: Arc < dyn VortexSessionVar > = Arc :: new ( var) ;
200200 self . 0 . rcu ( |current| {
201201 let mut next = SessionVars :: clone ( current) ;
@@ -246,9 +246,8 @@ impl VortexSession {
246246 /// Allow deserializing unknown plugin IDs as non-executable foreign placeholders.
247247 ///
248248 /// Mutates this session in place and returns it for chaining.
249- pub fn allow_unknown ( self ) -> Self {
249+ pub fn allow_unknown ( & self ) {
250250 self . get_mut :: < UnknownPluginPolicy > ( ) . allow_unknown = true ;
251- self
252251 }
253252}
254253
@@ -435,7 +434,7 @@ mod tests {
435434 let session = VortexSession :: empty ( ) ;
436435 assert ! ( !session. allows_unknown( ) ) ;
437436
438- let session = session. allow_unknown ( ) ;
437+ session. allow_unknown ( ) ;
439438 assert ! ( session. allows_unknown( ) ) ;
440439 }
441440
0 commit comments