Merge branch 'master' into plugins

This commit is contained in:
Stephen Chung
2020-07-06 23:14:44 +08:00
2 changed files with 156 additions and 109 deletions

View File

@@ -55,7 +55,7 @@ pub struct FnPtr(ImmutableString);
impl FnPtr {
/// Create a new function pointer.
pub(crate) fn new<S: Into<ImmutableString>>(name: S) -> Self {
pub(crate) fn new_unchecked<S: Into<ImmutableString>>(name: S) -> Self {
Self(name.into())
}
/// Get the name of the function.