API improvements.
This commit is contained in:
@@ -10,7 +10,7 @@ impl Principal<Get> {
|
||||
}
|
||||
|
||||
pub fn unwrap_id(self) -> String {
|
||||
self.id.unwrap()
|
||||
self.id.unwrap_or_default()
|
||||
}
|
||||
|
||||
pub fn ptype(&self) -> Option<&Type> {
|
||||
|
||||
Reference in New Issue
Block a user