diff --git a/ee/tabby-db/src/lib.rs b/ee/tabby-db/src/lib.rs index 9ec889cebf21..2fc01f669e48 100644 --- a/ee/tabby-db/src/lib.rs +++ b/ee/tabby-db/src/lib.rs @@ -82,16 +82,6 @@ fn make_pagination_query_with_condition( select.as_string() } -fn make_pagination_query( - table_name: &str, - field_names: &[&str], - limit: Option, - skip_id: Option, - backwards: bool, -) -> String { - make_pagination_query_with_condition(table_name, field_names, limit, skip_id, backwards, None) -} - impl DbConn { #[cfg(any(test, feature = "testutils"))] pub async fn new_in_memory() -> Result { diff --git a/ee/tabby-db/src/user_completions.rs b/ee/tabby-db/src/user_completions.rs index 565c501fdfb3..639f7cf27e52 100644 --- a/ee/tabby-db/src/user_completions.rs +++ b/ee/tabby-db/src/user_completions.rs @@ -70,7 +70,7 @@ impl DbConn { // FIXME(boxbeam): index `created_at` in user_completions table. pub async fn compute_daily_stats_in_past_year( &self, - users: Vec, + users: Vec, ) -> Result> { let users = users .iter() @@ -99,7 +99,7 @@ impl DbConn { &self, start: DateTime, end: DateTime, - users: Vec, + users: Vec, languages: Vec, ) -> Result> { let users = users diff --git a/ee/tabby-webserver/src/service/analytic.rs b/ee/tabby-webserver/src/service/analytic.rs index e68196f262b8..d4774b09892a 100644 --- a/ee/tabby-webserver/src/service/analytic.rs +++ b/ee/tabby-webserver/src/service/analytic.rs @@ -60,7 +60,7 @@ impl AnalyticService for AnalyticServiceImpl { } } -fn convert_ids(ids: Vec) -> Vec { +fn convert_ids(ids: Vec) -> Vec { ids.into_iter() .filter_map(|id| match id.as_rowid() { Ok(rowid) => Some(rowid),