A couple more (#1149)

This commit is contained in:
Jonathan Turner
2020-01-02 18:24:41 +13:00
committed by GitHub
parent 0f626dd076
commit 5e31851070
9 changed files with 45 additions and 29 deletions

View File

@ -48,8 +48,8 @@ impl ColumnPath {
self.members.iter()
}
pub fn split_last(&self) -> (&PathMember, &[PathMember]) {
self.members.split_last().unwrap()
pub fn split_last(&self) -> Option<(&PathMember, &[PathMember])> {
self.members.split_last()
}
}