Fix type for ModuleError::mk()

This commit is contained in:
Matthias Beyer 2015-10-25 19:54:54 +01:00
parent 3556e5adc6
commit 9fb50dac68
1 changed files with 2 additions and 2 deletions

View File

@ -16,9 +16,9 @@ pub struct ModuleError {
}
impl ModuleError {
fn mk(desc: String) -> ModuleError {
fn mk(desc: &'static str) -> ModuleError {
ModuleError {
desc: desc,
desc: desc.to_owned().to_string(),
}
}
}