This repository was archived by the owner on Oct 7, 2022. It is now read-only.
File tree 4 files changed +19
-4
lines changed
4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
[alias ]
2
2
xtask = " run --package xtask --"
3
+
4
+ [target .'cfg(all())' ]
5
+ rustflags = [
6
+ " -Wrust_2018_idioms" ,
7
+ " -Wunused_qualifications" ,
8
+ " -Wclippy::cloned_instead_of_copied" ,
9
+ " -Wclippy::dbg_macro" ,
10
+ " -Wclippy::disallowed_method" ,
11
+ " -Wclippy::disallowed_type" ,
12
+ " -Wclippy::str_to_string" ,
13
+ " -Wclippy::todo" ,
14
+ " -Wclippy::unreadable_literal" ,
15
+ " -Wclippy::unseparated_literal_suffix" ,
16
+ " -Wclippy::wildcard_imports" ,
17
+ ]
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ pub struct Application {
19
19
impl Client {
20
20
pub async fn get_app ( & self , app_id : & Uuid ) -> Result < Application > {
21
21
let path = format ! ( "/v1/apps/{}" , app_id) ;
22
- self . get ( & path, Option :: < & ( ) > :: None ) . await
22
+ self . get ( & path, None :: < & ( ) > ) . await
23
23
}
24
24
25
25
pub async fn get_apps ( & self , org_id : & Uuid ) -> Result < Vec < Application > > {
26
26
let path = format ! ( "/v1/orgs/{}/apps" , org_id) ;
27
- self . get ( & path, Option :: < & ( ) > :: None ) . await
27
+ self . get ( & path, None :: < & ( ) > ) . await
28
28
}
29
29
}
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ where
134
134
impl < ' de > Visitor < ' de > for PipelineVisitor {
135
135
type Value = Pipeline ;
136
136
137
- fn expecting ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
137
+ fn expecting ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
138
138
write ! ( f, "a possibly-stringified pipeline definition" )
139
139
}
140
140
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ pub struct Organization {
18
18
19
19
impl Client {
20
20
pub async fn get_orgs ( & self ) -> Result < Vec < Organization > > {
21
- self . get ( "/v1/orgs" , Option :: < & ( ) > :: None ) . await
21
+ self . get ( "/v1/orgs" , None :: < & ( ) > ) . await
22
22
}
23
23
}
You can’t perform that action at this time.
0 commit comments