Implement SourceCode for Arc<str> (and similar types)

This commit is contained in:
Andrew Hickman 2022-06-25 17:03:54 +01:00
parent 629ae49ad5
commit 35ae39c818
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ impl SourceCode for String {
}
}
impl<T: SourceCode> SourceCode for Arc<T> {
impl<T: ?Sized + SourceCode> SourceCode for Arc<T> {
fn read_span<'a>(
&'a self,
span: &SourceSpan,