File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ fn create_snippet() {
46
46
source : SOURCE ,
47
47
line_start : Some ( 51 ) ,
48
48
origin : Some ( "src/format.rs" ) ,
49
- annotations : vec ! [
49
+ annotations : & [
50
50
SourceAnnotation {
51
51
label : "expected `Option<String>` because of return type" ,
52
52
annotation_type : AnnotationType :: Warning ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ fn main() {
40
40
source,
41
41
line_start : Some ( 51 ) ,
42
42
origin : Some ( "src/format.rs" ) ,
43
- annotations : vec ! [
43
+ annotations : & [
44
44
SourceAnnotation {
45
45
label : "expected `Option<String>` because of return type" ,
46
46
annotation_type : AnnotationType :: Warning ,
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ pub struct Slice<'s> {
5
5
pub source : & ' s str ,
6
6
pub line_start : Option < usize > ,
7
7
pub origin : Option < & ' s str > ,
8
- pub annotations : Vec < SourceAnnotation < ' s > > ,
8
+ pub annotations : & ' s [ SourceAnnotation < ' s > ] ,
9
9
}
You can’t perform that action at this time.
0 commit comments