File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1131,6 +1131,7 @@ impl LocalInternedString {
1131
1131
}
1132
1132
}
1133
1133
1134
+ #[ inline]
1134
1135
pub fn get ( & self ) -> & str {
1135
1136
// This returns a valid string since we ensure that `self` outlives the interner
1136
1137
// by creating the interner on a thread which outlives threads which can access it.
@@ -1144,6 +1145,7 @@ impl<U: ?Sized> std::convert::AsRef<U> for LocalInternedString
1144
1145
where
1145
1146
str : std:: convert:: AsRef < U >
1146
1147
{
1148
+ #[ inline]
1147
1149
fn as_ref ( & self ) -> & U {
1148
1150
self . string . as_ref ( )
1149
1151
}
@@ -1184,6 +1186,7 @@ impl !Sync for LocalInternedString {}
1184
1186
1185
1187
impl std:: ops:: Deref for LocalInternedString {
1186
1188
type Target = str ;
1189
+ #[ inline]
1187
1190
fn deref ( & self ) -> & str { self . string }
1188
1191
}
1189
1192
You can’t perform that action at this time.
0 commit comments