@@ -473,7 +473,7 @@ impl<'a> AuthenticatedApi<'a> {
473473 checksums : & [ String ] ,
474474 ) -> ApiResult < Vec < Artifact > > {
475475 let mut rv = vec ! [ ] ;
476- let mut cursor = "" . to_string ( ) ;
476+ let mut cursor = "" . to_owned ( ) ;
477477 loop {
478478 let mut path = if let Some ( project) = project {
479479 format ! (
@@ -1080,7 +1080,7 @@ impl<'a> AuthenticatedApi<'a> {
10801080 /// we're issuing a request to a monolith deployment.
10811081 pub fn list_organizations ( & self , region : Option < & Region > ) -> ApiResult < Vec < Organization > > {
10821082 let mut rv = vec ! [ ] ;
1083- let mut cursor = "" . to_string ( ) ;
1083+ let mut cursor = "" . to_owned ( ) ;
10841084 loop {
10851085 let current_path = & format ! ( "/organizations/?cursor={}" , QueryArg ( & cursor) ) ;
10861086 let resp = if let Some ( rg) = region {
@@ -1128,7 +1128,7 @@ impl<'a> AuthenticatedApi<'a> {
11281128 /// List all monitors associated with an organization
11291129 pub fn list_organization_monitors ( & self , org : & str ) -> ApiResult < Vec < Monitor > > {
11301130 let mut rv = vec ! [ ] ;
1131- let mut cursor = "" . to_string ( ) ;
1131+ let mut cursor = "" . to_owned ( ) ;
11321132 loop {
11331133 let resp = self . get ( & format ! (
11341134 "/organizations/{}/monitors/?cursor={}" ,
@@ -1156,7 +1156,7 @@ impl<'a> AuthenticatedApi<'a> {
11561156 /// List all projects associated with an organization
11571157 pub fn list_organization_projects ( & self , org : & str ) -> ApiResult < Vec < Project > > {
11581158 let mut rv = vec ! [ ] ;
1159- let mut cursor = "" . to_string ( ) ;
1159+ let mut cursor = "" . to_owned ( ) ;
11601160 loop {
11611161 let resp = self . get ( & format ! (
11621162 "/organizations/{}/projects/?cursor={}" ,
@@ -1189,7 +1189,7 @@ impl<'a> AuthenticatedApi<'a> {
11891189 max_pages : usize ,
11901190 ) -> ApiResult < Vec < ProcessedEvent > > {
11911191 let mut rv = vec ! [ ] ;
1192- let mut cursor = "" . to_string ( ) ;
1192+ let mut cursor = "" . to_owned ( ) ;
11931193 let mut requests_no = 0 ;
11941194
11951195 loop {
@@ -1236,7 +1236,7 @@ impl<'a> AuthenticatedApi<'a> {
12361236 query : Option < String > ,
12371237 ) -> ApiResult < Vec < Issue > > {
12381238 let mut rv = vec ! [ ] ;
1239- let mut cursor = "" . to_string ( ) ;
1239+ let mut cursor = "" . to_owned ( ) ;
12401240 let mut requests_no = 0 ;
12411241
12421242 let url = if let Some ( query) = query {
@@ -1283,7 +1283,7 @@ impl<'a> AuthenticatedApi<'a> {
12831283 /// List all repos associated with an organization
12841284 pub fn list_organization_repos ( & self , org : & str ) -> ApiResult < Vec < Repo > > {
12851285 let mut rv = vec ! [ ] ;
1286- let mut cursor = "" . to_string ( ) ;
1286+ let mut cursor = "" . to_owned ( ) ;
12871287 loop {
12881288 let path = format ! (
12891289 "/organizations/{}/repos/?cursor={}" ,
@@ -1930,7 +1930,7 @@ fn log_headers(is_response: bool, data: &[u8]) {
19301930
19311931 let replaced = AUTH_RE . replace_all ( line, |caps : & Captures < ' _ > | {
19321932 let info = if & caps[ 1 ] . to_lowercase ( ) == "basic" {
1933- caps[ 3 ] . split ( ':' ) . next ( ) . unwrap ( ) . to_string ( )
1933+ caps[ 3 ] . split ( ':' ) . next ( ) . unwrap ( ) . to_owned ( )
19341934 } else {
19351935 format ! ( "{}***" , & caps[ 3 ] [ ..std:: cmp:: min( caps[ 3 ] . len( ) , 8 ) ] )
19361936 } ;
0 commit comments