feat(protocol): Implement SourceCode for Arc<str> (and similar types) (#181)

This commit is contained in:
Andrew Hickman 2022-06-25 18:58:56 +01:00 committed by GitHub
parent 629ae49ad5
commit 85da6a8407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,