Remove useless .to_owned()

This commit is contained in:
Jonas Platte 2019-10-23 01:41:37 +02:00
parent 922a35eced
commit 63a012d338

View File

@ -110,7 +110,7 @@ impl TryFromRaw for StartEventContent {
Ok(StartEventContent::MSasV1(content))
}
raw::StartEventContent::__Nonexhaustive => {
panic!("__Nonexhaustive enum variant is not intended for use.".to_owned());
panic!("__Nonexhaustive enum variant is not intended for use.");
}
}
}