Make id_raw return Option<&ImmutableString>
This commit is contained in:
@@ -252,8 +252,8 @@ impl Module {
|
||||
}
|
||||
|
||||
/// Get the ID of the [`Module`] as an [`ImmutableString`], if any.
|
||||
pub fn id_raw(&self) -> &Option<ImmutableString> {
|
||||
&self.id
|
||||
pub fn id_raw(&self) -> Option<&ImmutableString> {
|
||||
self.id.as_ref()
|
||||
}
|
||||
|
||||
/// Set the ID of the [`Module`].
|
||||
|
Reference in New Issue
Block a user