Fix: ModuleError::mk() -> pub ModuleError::new()
This commit is contained in:
parent
18ea01b854
commit
9bf9f96ab1
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ pub struct ModuleError {
|
|||
}
|
||||
|
||||
impl ModuleError {
|
||||
fn mk(desc: &'static str) -> ModuleError {
|
||||
pub fn new(desc: &'static str) -> ModuleError {
|
||||
ModuleError {
|
||||
desc: desc.to_owned().to_string(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue