File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
pub mod source;
2
+ pub mod version;
2
3
3
4
use anyhow:: { Context , Result } ;
4
5
use serde:: Deserialize ;
@@ -18,7 +19,7 @@ pub struct Artifact {
18
19
}
19
20
20
21
impl Artifact {
21
- pub async fn is_version_behind ( & self ) -> Result < Option < String > > {
22
+ pub ( super ) async fn is_version_behind ( & self ) -> Result < Option < String > > {
22
23
self . source . is_version_behind ( & self . current_version ) . await
23
24
}
24
25
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pub enum Source {
20
20
}
21
21
22
22
impl Source {
23
- pub async fn is_version_behind ( & self , current_version : & str ) -> Result < Option < String > > {
23
+ pub ( super ) async fn is_version_behind ( & self , current_version : & str ) -> Result < Option < String > > {
24
24
match self {
25
25
Source :: GitHub ( source) => source. is_version_behind ( current_version) . await ,
26
26
Source :: DockerHub ( source) => source. is_version_behind ( current_version) . await ,
@@ -29,7 +29,6 @@ impl Source {
29
29
}
30
30
}
31
31
32
- #[ allow( async_fn_in_trait) ]
33
- pub trait SourceChecker : Send {
32
+ trait SourceChecker : Send {
34
33
async fn is_version_behind ( & self , current_version : & str ) -> Result < Option < String > > ;
35
34
}
Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ impl Sink {
41
41
}
42
42
}
43
43
44
- #[ allow( async_fn_in_trait) ]
45
- pub trait SinkSender : Send {
44
+ trait SinkSender : Send {
46
45
async fn send ( & self , message : & str ) ;
47
46
}
48
47
You can’t perform that action at this time.
0 commit comments