Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed May 6, 2023
1 parent 4deca9c commit 086d9e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 0 additions & 2 deletions rust/examples/recordbatch-writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ fn convert_to_batch(table: &DeltaTable, records: &Vec<WeatherRecord>) -> RecordB
* Table in an existing directory that doesn't currently contain a Delta table
*/
async fn create_initialized_table(table_path: &Path) -> DeltaTable {


DeltaOps::try_from_uri(table_path)
.await
.unwrap()
Expand Down
14 changes: 1 addition & 13 deletions rust/src/data_catalog/unity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ impl AsRef<str> for UnityCatalogConfigKey {
}

/// Builder for crateing a UnityCatalogClient
#[derive(Default)]
pub struct UnityCatalogBuilder {
/// Url of a Databricks workspace
workspace_url: Option<String>,
Expand All @@ -157,19 +158,6 @@ pub struct UnityCatalogBuilder {
client_options: super::client::ClientOptions,
}

impl Default for UnityCatalogBuilder {
fn default() -> Self {
Self {
workspace_url: None,
client_options: Default::default(),
client_id: None,
client_secret: None,
tenant_id: None,
bearer_token: None,
}
}
}

impl UnityCatalogBuilder {
/// Create a new [`UnityCatalogBuilder`] with default values.
pub fn new() -> Self {
Expand Down
2 changes: 1 addition & 1 deletion rust/src/data_catalog/unity/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum ListSchemasResponse {
#[serde(untagged)]
pub enum GetSchemaResponse {
/// Successful response
Success(Schema),
Success(Box<Schema>),
/// Error response
Error(ErrorResponse),
}
Expand Down

0 comments on commit 086d9e9

Please sign in to comment.