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