File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ impl BuiltinConfig {
47
47
pub fn get_config ( mut name : String ) -> Result < String > {
48
48
if !Path :: new ( & name)
49
49
. extension ( )
50
- . map_or ( false , |ext| ext. eq_ignore_ascii_case ( "toml" ) )
50
+ . is_some_and ( |ext| ext. eq_ignore_ascii_case ( "toml" ) )
51
51
{
52
52
name = format ! ( "{name}.toml" ) ;
53
53
}
Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ impl TryFrom<Remote> for BitbucketClient {
180
180
}
181
181
182
182
impl RemoteClient for BitbucketClient {
183
- const API_URL : & str = "https://api.bitbucket.org/2.0/repositories" ;
184
- const API_URL_ENV : & str = "BITBUCKET_API_URL" ;
183
+ const API_URL : & ' static str = "https://api.bitbucket.org/2.0/repositories" ;
184
+ const API_URL_ENV : & ' static str = "BITBUCKET_API_URL" ;
185
185
186
186
fn remote ( & self ) -> Remote {
187
187
self . remote . clone ( )
Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ impl TryFrom<Remote> for GiteaClient {
144
144
}
145
145
146
146
impl RemoteClient for GiteaClient {
147
- const API_URL : & str = "https://codeberg.org" ;
148
- const API_URL_ENV : & str = "GITEA_API_URL" ;
147
+ const API_URL : & ' static str = "https://codeberg.org" ;
148
+ const API_URL_ENV : & ' static str = "GITEA_API_URL" ;
149
149
150
150
fn remote ( & self ) -> Remote {
151
151
self . remote . clone ( )
Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ impl TryFrom<Remote> for GitHubClient {
159
159
}
160
160
161
161
impl RemoteClient for GitHubClient {
162
- const API_URL : & str = "https://api.github.com" ;
163
- const API_URL_ENV : & str = "GITHUB_API_URL" ;
162
+ const API_URL : & ' static str = "https://api.github.com" ;
163
+ const API_URL_ENV : & ' static str = "GITHUB_API_URL" ;
164
164
165
165
fn remote ( & self ) -> Remote {
166
166
self . remote . clone ( )
Original file line number Diff line number Diff line change @@ -241,8 +241,8 @@ impl TryFrom<Remote> for GitLabClient {
241
241
}
242
242
243
243
impl RemoteClient for GitLabClient {
244
- const API_URL : & str = "https://gitlab.com/api/v4" ;
245
- const API_URL_ENV : & str = "GITLAB_API_URL" ;
244
+ const API_URL : & ' static str = "https://gitlab.com/api/v4" ;
245
+ const API_URL_ENV : & ' static str = "GITLAB_API_URL" ;
246
246
247
247
fn remote ( & self ) -> Remote {
248
248
self . remote . clone ( )
You can’t perform that action at this time.
0 commit comments