Fix builds.
This commit is contained in:
parent
df482d3574
commit
8531567ee9
@ -153,7 +153,7 @@ impl<'a> From<&'a ScriptFnDef> for ScriptFnMetadata<'a> {
|
||||
Self {
|
||||
#[cfg(not(feature = "no_function"))]
|
||||
#[cfg(feature = "metadata")]
|
||||
comments: self.comments.iter().map(|s| s.as_str()).collect(),
|
||||
comments: value.comments.iter().map(|s| s.as_str()).collect(),
|
||||
access: value.access,
|
||||
name: &value.name,
|
||||
params: value.params.iter().map(|s| s.as_str()).collect(),
|
||||
|
@ -212,6 +212,7 @@ pub enum Union {
|
||||
TimeStamp(Box<Instant>, Tag, AccessMode),
|
||||
|
||||
/// Any type as a trait object.
|
||||
#[allow(clippy::redundant_allocation)]
|
||||
Variant(Box<Box<dyn Variant>>, Tag, AccessMode),
|
||||
|
||||
/// A _shared_ value of any type.
|
||||
|
Loading…
Reference in New Issue
Block a user