@@ -16,6 +16,7 @@ use rust_project_goals::{
16
16
goal:: { self , GoalDocument , Status , TeamAsk } ,
17
17
re, team,
18
18
} ;
19
+ use spanned:: Spanned ;
19
20
20
21
const LINKS : & str = "links" ;
21
22
const LINKIFIERS : & str = "linkifiers" ;
@@ -293,18 +294,18 @@ impl<'c> GoalPreprocessorWithContext<'c> {
293
294
}
294
295
let config = Configuration :: get ( ) ;
295
296
let rows = std:: iter:: once ( vec ! [
296
- "Ask" . to_string( ) ,
297
- "aka" . to_string( ) ,
298
- "Description" . to_string( ) ,
297
+ Spanned :: here ( "Ask" . to_string( ) ) ,
298
+ Spanned :: here ( "aka" . to_string( ) ) ,
299
+ Spanned :: here ( "Description" . to_string( ) ) ,
299
300
] )
300
301
. chain ( config. team_asks . iter ( ) . map ( |( name, details) | {
301
302
vec ! [
302
- format!( "{name:?}" ) ,
303
- details. short. to_string( ) ,
304
- details. about. to_string( ) ,
303
+ Spanned :: here ( format!( "{name:?}" ) ) ,
304
+ Spanned :: here ( details. short. to_string( ) ) ,
305
+ Spanned :: here ( details. about. to_string( ) ) ,
305
306
]
306
307
} ) )
307
- . collect :: < Vec < Vec < String > > > ( ) ;
308
+ . collect :: < Vec < Vec < Spanned < String > > > > ( ) ;
308
309
let table = util:: format_table ( & rows) ;
309
310
let new_content = re:: VALID_TEAM_ASKS . replace_all ( & chapter. content , table) ;
310
311
chapter. content = new_content. to_string ( ) ;
0 commit comments