Update assertion message in pointer_to_value method

Little fix :)
pull/1580/head
3D Pinball 4 days ago committed by GitHub
parent 29ec17d505
commit deed1a59a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -147,7 +147,7 @@ impl SelfRef {
fn pointer_to_value(&self) -> &String {
assert!(!self.pointer_to_value.is_null(),
"Test::b called without Test::init being called first");
"SelfRef::pointer_to_value called without SelfRef::init being called first");
unsafe { &*(self.pointer_to_value) }
}
}
@ -189,7 +189,8 @@ impl SelfRef {
}
fn pointer_to_value(&self) -> &String {
assert!(!self.pointer_to_value.is_null(), "Test::b called without Test::init being called first");
assert!(!self.pointer_to_value.is_null(),
"SelfRef::pointer_to_value called without SelfRef::init being called first");
unsafe { &*(self.pointer_to_value) }
}
}

Loading…
Cancel
Save