@@ -427,8 +427,8 @@ impl AboutMetadata {
427427 }
428428
429429 /// Defines the application version.
430- pub fn version ( mut self , version : String ) -> Self {
431- self . version . replace ( version) ;
430+ pub fn version ( mut self , version : impl Into < String > ) -> Self {
431+ self . version . replace ( version. into ( ) ) ;
432432 self
433433 }
434434
@@ -439,32 +439,32 @@ impl AboutMetadata {
439439 }
440440
441441 /// Defines the application comments.
442- pub fn comments ( mut self , comments : String ) -> Self {
443- self . comments . replace ( comments) ;
442+ pub fn comments ( mut self , comments : impl Into < String > ) -> Self {
443+ self . comments . replace ( comments. into ( ) ) ;
444444 self
445445 }
446446
447447 /// Defines the application copyright.
448- pub fn copyright ( mut self , copyright : String ) -> Self {
449- self . copyright . replace ( copyright) ;
448+ pub fn copyright ( mut self , copyright : impl Into < String > ) -> Self {
449+ self . copyright . replace ( copyright. into ( ) ) ;
450450 self
451451 }
452452
453453 /// Defines the application license.
454- pub fn license ( mut self , license : String ) -> Self {
455- self . license . replace ( license) ;
454+ pub fn license ( mut self , license : impl Into < String > ) -> Self {
455+ self . license . replace ( license. into ( ) ) ;
456456 self
457457 }
458458
459459 /// Defines the application version.
460- pub fn website ( mut self , website : String ) -> Self {
461- self . website . replace ( website) ;
460+ pub fn website ( mut self , website : impl Into < String > ) -> Self {
461+ self . website . replace ( website. into ( ) ) ;
462462 self
463463 }
464464
465465 /// Defines the application version.
466- pub fn website_label ( mut self , website_label : String ) -> Self {
467- self . website_label . replace ( website_label) ;
466+ pub fn website_label ( mut self , website_label : impl Into < String > ) -> Self {
467+ self . website_label . replace ( website_label. into ( ) ) ;
468468 self
469469 }
470470}
0 commit comments