@@ -243,8 +243,8 @@ impl PartialEq for SourceMapCell {
243243impl Hash for SourceMapCell {
244244 fn hash < H : Hasher > ( & self , state : & mut H ) {
245245 match self {
246- SourceMapCell :: Static ( s) => s. hash ( state) ,
247- SourceMapCell :: Owned ( owned) => owned. hash ( state) ,
246+ SourceMapCell :: Static ( s) => s. hash ( state) ,
247+ SourceMapCell :: Owned ( owned) => owned. hash ( state) ,
248248 }
249249 }
250250}
@@ -380,7 +380,7 @@ impl SourceMap {
380380 }
381381
382382 /// Get the sources field in [SourceMap].
383- pub fn sources ( & self ) -> Box < dyn Iterator < Item = & str > + ' _ > {
383+ pub fn sources ( & self ) -> Box < dyn Iterator < Item = & str > + Send + ' _ > {
384384 match & self . 0 {
385385 SourceMapCell :: Static ( s) => {
386386 Box :: new ( s. borrow_dependent ( ) . sources . iter ( ) . copied ( ) )
@@ -409,7 +409,7 @@ impl SourceMap {
409409 }
410410
411411 /// Get the sourcesContent field in [SourceMap].
412- pub fn sources_content ( & self ) -> Box < dyn Iterator < Item = & str > + ' _ > {
412+ pub fn sources_content ( & self ) -> Box < dyn Iterator < Item = & str > + Send + ' _ > {
413413 match & self . 0 {
414414 SourceMapCell :: Static ( s) => {
415415 Box :: new ( s. borrow_dependent ( ) . sources_content . iter ( ) . copied ( ) )
@@ -421,7 +421,7 @@ impl SourceMap {
421421 }
422422
423423 /// Set the sourcesContent field in [SourceMap].
424- pub fn set_sources_content ( & mut self , sources_content : Vec < String > ) {
424+ pub fn set_sources_content < T : Into < Arc < [ String ] > > > ( & mut self , sources_content : T ) {
425425 self . ensure_owned ( ) . sources_content = sources_content. into ( )
426426 }
427427
@@ -438,7 +438,7 @@ impl SourceMap {
438438 }
439439
440440 /// Get the names field in [SourceMap].
441- pub fn names ( & self ) -> Box < dyn Iterator < Item = & str > + ' _ > {
441+ pub fn names ( & self ) -> Box < dyn Iterator < Item = & str > + Send + ' _ > {
442442 match & self . 0 {
443443 SourceMapCell :: Static ( s) => {
444444 Box :: new ( s. borrow_dependent ( ) . names . iter ( ) . copied ( ) )
0 commit comments