We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e06e371 commit 75808d5Copy full SHA for 75808d5
1 file changed
vortex-session/src/lib.rs
@@ -72,7 +72,9 @@ impl VortexSession {
72
73
/// Returns whether unknown plugins should deserialize as foreign placeholders.
74
pub fn allows_unknown(&self) -> bool {
75
- <Self as SessionExt>::get::<UnknownPluginPolicy>(self).allow_unknown
+ <Self as SessionExt>::get_opt::<UnknownPluginPolicy>(self)
76
+ .map(|p| p.allow_unknown)
77
+ .unwrap_or(false)
78
}
79
80
0 commit comments