@@ -432,7 +432,7 @@ pub(crate) use impl_from_sql_text;
432432pub trait DatabaseString : Sized {
433433 type Error : std:: fmt:: Display ;
434434
435- fn to_database_string ( & self ) -> Cow < str > ;
435+ fn to_database_string ( & self ) -> Cow < ' _ , str > ;
436436 fn from_database_string ( s : & str ) -> Result < Self , Self :: Error > ;
437437}
438438
@@ -445,7 +445,7 @@ use std::borrow::Cow;
445445impl DatabaseString for FleetRole {
446446 type Error = anyhow:: Error ;
447447
448- fn to_database_string ( & self ) -> Cow < str > {
448+ fn to_database_string ( & self ) -> Cow < ' _ , str > {
449449 match self {
450450 FleetRole :: Admin => "admin" ,
451451 FleetRole :: Collaborator => "collaborator" ,
@@ -470,7 +470,7 @@ impl DatabaseString for FleetRole {
470470impl DatabaseString for SiloRole {
471471 type Error = anyhow:: Error ;
472472
473- fn to_database_string ( & self ) -> Cow < str > {
473+ fn to_database_string ( & self ) -> Cow < ' _ , str > {
474474 match self {
475475 SiloRole :: Admin => "admin" ,
476476 SiloRole :: Collaborator => "collaborator" ,
@@ -495,7 +495,7 @@ impl DatabaseString for SiloRole {
495495impl DatabaseString for ProjectRole {
496496 type Error = anyhow:: Error ;
497497
498- fn to_database_string ( & self ) -> Cow < str > {
498+ fn to_database_string ( & self ) -> Cow < ' _ , str > {
499499 match self {
500500 ProjectRole :: Admin => "admin" ,
501501 ProjectRole :: Collaborator => "collaborator" ,
0 commit comments