Fix type for ModuleError::mk()

This commit is contained in:
Matthias Beyer 2015-10-25 19:54:54 +01:00
parent 3556e5adc6
commit 9fb50dac68

View file

@ -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(),
} }
} }
} }