Minor code refactor.

This commit is contained in:
Stephen Chung
2021-05-18 12:24:11 +08:00
parent d1fc362eec
commit 3116a39331
7 changed files with 37 additions and 60 deletions

View File

@@ -31,8 +31,8 @@ impl DummyModuleResolver {
/// engine.set_module_resolver(resolver);
/// ```
#[inline(always)]
pub fn new() -> Self {
Default::default()
pub const fn new() -> Self {
Self
}
}