identifiers: Simplify generated as_str implementations

This commit is contained in:
Jonas Platte 2020-07-26 14:44:37 +02:00
parent 08fbace022
commit 2e5fceb2b5
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -30,7 +30,7 @@ macro_rules! common_impls {
doc_concat! {
#[doc = concat!("Creates a string slice from this `", stringify!($id), "`")]
pub fn as_str(&self) -> &str {
self.full_id.as_ref()
&self.full_id
}
}
}