Skip to content

Commit

Permalink
Remove unused crates in the tests/ and examples/ code
Browse files Browse the repository at this point in the history
Unfortunately `cargo +nightly udeps --tests --no-default-features --features
integration_test,datafusion,s3-native-tls` did not produce more unused
dependencies which means there is fewer cruft to chop out of these dependency
trees at the moment.

Related to delta-io#1550

Sponsored-by: Databricks In
  • Loading branch information
rtyler committed Jul 21, 2023
1 parent b1f8477 commit d76fc7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ tempdir = { version = "0", optional = true }
dynamodb_lock = { version = "0", default-features = false, optional = true }

[dev-dependencies]
anyhow = "1"
criterion = "0"
dotenvy = "0"
maplit = "1"
pretty_assertions = "1.2.1"
Expand Down
5 changes: 3 additions & 2 deletions rust/examples/recordbatch-writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ use std::sync::Arc;
* example code for writing to Delta tables
*/
#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
async fn main() -> Result<(), DeltaTableError> {
info!("Logger initialized");

let table_uri = std::env::var("TABLE_URI")?;
let table_uri = std::env::var("TABLE_URI")
.map_err(|e| DeltaTableError::GenericError { source: Box::new(source) })?;
info!("Using the location of: {:?}", table_uri);

let table_path = Path::from(table_uri.as_ref());
Expand Down

0 comments on commit d76fc7f

Please sign in to comment.