@@ -16,6 +16,7 @@ use rust_project_goals::{
1616 goal:: { self , GoalDocument , Status , TeamAsk } ,
1717 re, team,
1818} ;
19+ use spanned:: Spanned ;
1920
2021const LINKS : & str = "links" ;
2122const LINKIFIERS : & str = "linkifiers" ;
@@ -293,18 +294,18 @@ impl<'c> GoalPreprocessorWithContext<'c> {
293294 }
294295 let config = Configuration :: get ( ) ;
295296 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( ) ) ,
299300 ] )
300301 . chain ( config. team_asks . iter ( ) . map ( |( name, details) | {
301302 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( ) ) ,
305306 ]
306307 } ) )
307- . collect :: < Vec < Vec < String > > > ( ) ;
308+ . collect :: < Vec < Vec < Spanned < String > > > > ( ) ;
308309 let table = util:: format_table ( & rows) ;
309310 let new_content = re:: VALID_TEAM_ASKS . replace_all ( & chapter. content , table) ;
310311 chapter. content = new_content. to_string ( ) ;
0 commit comments