identifiers: Simplify generated as_str implementations
This commit is contained in:
parent
08fbace022
commit
2e5fceb2b5
@ -30,7 +30,7 @@ macro_rules! common_impls {
|
|||||||
doc_concat! {
|
doc_concat! {
|
||||||
#[doc = concat!("Creates a string slice from this `", stringify!($id), "`")]
|
#[doc = concat!("Creates a string slice from this `", stringify!($id), "`")]
|
||||||
pub fn as_str(&self) -> &str {
|
pub fn as_str(&self) -> &str {
|
||||||
self.full_id.as_ref()
|
&self.full_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user