File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -277,10 +277,6 @@ impl Handle for MatcherHandle {
277
277
self . inner . id
278
278
}
279
279
280
- fn hash ( & self ) -> & str {
281
- & self . inner . hash
282
- }
283
-
284
280
fn cancelled ( & self ) -> WaitForCancellationFuture {
285
281
self . inner . cancel . cancelled ( )
286
282
}
@@ -349,6 +345,10 @@ impl MatcherHandle {
349
345
& self . inner . sql
350
346
}
351
347
348
+ pub fn hash ( & self ) -> & str {
349
+ & self . inner . hash
350
+ }
351
+
352
352
pub fn parsed_columns ( & self ) -> & [ ResultColumn ] {
353
353
& self . inner . parsed . columns
354
354
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use rusqlite::Connection;
12
12
use serde:: { Deserialize , Serialize } ;
13
13
use spawn:: spawn_counted;
14
14
use std:: collections:: BTreeMap ;
15
- use std:: fmt:: { Debug , Display , Formatter } ;
15
+ use std:: fmt:: { Debug , Formatter } ;
16
16
use std:: sync:: Arc ;
17
17
use std:: time:: Duration ;
18
18
use tokio:: sync:: mpsc;
@@ -33,7 +33,6 @@ pub trait Manager<H> {
33
33
#[ async_trait]
34
34
pub trait Handle {
35
35
fn id ( & self ) -> Uuid ;
36
- fn hash ( & self ) -> & str ;
37
36
fn cancelled ( & self ) -> WaitForCancellationFuture ;
38
37
fn filter_matchable_change (
39
38
& self ,
@@ -98,10 +97,6 @@ impl Handle for UpdateHandle {
98
97
self . inner . id
99
98
}
100
99
101
- fn hash ( & self ) -> & str {
102
- & self . inner . name
103
- }
104
-
105
100
fn cancelled ( & self ) -> WaitForCancellationFuture {
106
101
self . inner . cancel . cancelled ( )
107
102
}
You can’t perform that action at this time.
0 commit comments