Fix metadata build.

This commit is contained in:
Stephen Chung 2021-03-10 14:10:04 +08:00
parent cbad703b00
commit 874b3fc843

View File

@ -151,7 +151,7 @@ impl From<&crate::module::FuncInfo> for FnMetadata {
}
#[cfg(not(feature = "no_function"))]
{
info.func.get_fn_def().comments.clone()
info.func.get_fn_def().comments.to_vec()
}
} else {
Default::default()