diff --git a/ee/tabby-webserver/src/schema/repository.rs b/ee/tabby-webserver/src/schema/repository.rs index 249b545d003d..c0915dd23d7d 100644 --- a/ee/tabby-webserver/src/schema/repository.rs +++ b/ee/tabby-webserver/src/schema/repository.rs @@ -1,9 +1,6 @@ - - use async_trait::async_trait; use juniper::{GraphQLObject, ID}; use juniper_axum::relay::NodeType; - use validator::Validate; use super::{Context, Result}; diff --git a/ee/tabby-webserver/src/service/repository.rs b/ee/tabby-webserver/src/service/repository.rs index 1398e01ba7a6..3cabbfeef206 100644 --- a/ee/tabby-webserver/src/service/repository.rs +++ b/ee/tabby-webserver/src/service/repository.rs @@ -80,7 +80,8 @@ impl RepositoryService for DbConn { } async fn update_repository(&self, id: &ID, name: String, git_url: String) -> Result { - self.update_repository(id.as_rowid()? as i64, name, git_url).await?; + self.update_repository(id.as_rowid()? as i64, name, git_url) + .await?; Ok(true) }