Skip to content

Commit b224f69

Browse files
Merge branch 'main' into feat/public-ctor
2 parents 373c31b + 32f85fd commit b224f69

32 files changed

Lines changed: 135 additions & 145 deletions

File tree

acceptance/build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ fn dat_exists() -> bool {
2929

3030
fn download_dat_files() -> Vec<u8> {
3131
let tarball_url = format!(
32-
"https://github.com/delta-incubator/dat/releases/download/v{version}/deltalake-dat-v{version}.tar.gz",
33-
version = VERSION
32+
"https://github.com/delta-incubator/dat/releases/download/v{VERSION}/deltalake-dat-v{VERSION}.tar.gz"
3433
);
3534

3635
let response = if let Ok(proxy_url) = env::var("HTTPS_PROXY") {

acceptance/src/meta.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,6 @@ mod tests {
147147
let path = PathBuf::from("./tests/dat/out/reader_tests/generated/with_schema_change");
148148
let case = read_dat_case(path).unwrap();
149149
let versions = case.versions().await.unwrap();
150-
println!("{:?}", versions)
150+
println!("{versions:?}")
151151
}
152152
}

acceptance/tests/dat_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn reader_test(path: &Path) -> datatest_stable::Result<()> {
1616
);
1717
for skipped in SKIPPED_TESTS {
1818
if root_dir.ends_with(skipped) {
19-
println!("Skipping test: {}", skipped);
19+
println!("Skipping test: {skipped}");
2020
return Ok(());
2121
}
2222
}

derive-macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ fn make_public(mut item: Item) -> Item {
241241
// foreign mod, impl block, and all others not handled
242242
_ => Err(Error::new(
243243
item.span(),
244-
format!("unsupported item type for #[internal_api]: {:?}", item),
244+
format!("unsupported item type for #[internal_api]: {item:?}"),
245245
)),
246246
};
247247

ffi-proc-macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Parse for HandleDescriptorParams {
5656
field => {
5757
return Err(Error::new(
5858
ident.span(),
59-
format!("unknown or duplicated field `{}`", field),
59+
format!("unknown or duplicated field `{field}`"),
6060
));
6161
}
6262
}

ffi/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() {
2626

2727
// generate cxx bindings
2828
let output_file_hpp = target_dir
29-
.join(format!("{}.hpp", package_name))
29+
.join(format!("{package_name}.hpp"))
3030
.display()
3131
.to_string();
3232
let mut config_hpp = config.clone();
@@ -37,7 +37,7 @@ fn main() {
3737

3838
// generate c bindings
3939
let output_file_h = target_dir
40-
.join(format!("{}.h", package_name))
40+
.join(format!("{package_name}.h"))
4141
.display()
4242
.to_string();
4343
config.language = Language::C;

ffi/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl<T> IntoExternResult<T> for DeltaResult<T> {
214214
match self {
215215
Ok(ok) => ExternResult::Ok(ok),
216216
Err(err) => {
217-
let msg = format!("{}", err);
217+
let msg = format!("{err}");
218218
let err = unsafe { alloc.allocate_error(err.into(), kernel_string_slice!(msg)) };
219219
ExternResult::Err(err)
220220
}

ffi/src/ffi_tracing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ struct MessageFieldVisitor {
230230
impl Visit for MessageFieldVisitor {
231231
fn record_debug(&mut self, field: &TracingField, value: &dyn fmt::Debug) {
232232
if field.name() == "message" {
233-
self.message = Some(format!("{:?}", value));
233+
self.message = Some(format!("{value:?}"));
234234
}
235235
}
236236

@@ -577,7 +577,7 @@ mod tests {
577577

578578
// file path will use \ on windows
579579
use std::path::MAIN_SEPARATOR;
580-
let expected_file = format!("ffi{}src{}ffi_tracing.rs", MAIN_SEPARATOR, MAIN_SEPARATOR);
580+
let expected_file = format!("ffi{MAIN_SEPARATOR}src{MAIN_SEPARATOR}ffi_tracing.rs");
581581

582582
let ok = event.level == Level::INFO
583583
&& target == "delta_kernel_ffi::ffi_tracing::tests"

ffi/tests/invalid-handle-code/mut-clone-handle.stderr

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ error[E0271]: type mismatch resolving `<MutFoo as HandleDescriptor>::Mutable ==
1414
--> tests/invalid-handle-code/mut-clone-handle.rs:12:41
1515
|
1616
12 | let h: Handle<MutFoo> = Arc::new(s).into();
17-
| ^^^^ expected `False`, found `True`
17+
| ^^^^ type mismatch resolving `<MutFoo as HandleDescriptor>::Mutable == False`
1818
|
19+
note: expected this to be `False`
20+
--> tests/invalid-handle-code/mut-clone-handle.rs:7:1
21+
|
22+
7 | #[handle_descriptor(target=Foo, mutable=true, sized=true)]
23+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1924
= note: required for `Handle<MutFoo>` to implement `From<Arc<Foo>>`
2025
= note: required for `Arc<Foo>` to implement `Into<Handle<MutFoo>>`
26+
= note: this error originates in the attribute macro `handle_descriptor` (in Nightly builds, run with -Z macro-backtrace for more info)
2127

2228
error[E0599]: the method `clone_handle` exists for struct `Handle<MutFoo>`, but its trait bounds were not satisfied
2329
--> tests/invalid-handle-code/mut-clone-handle.rs:14:15

ffi/tests/invalid-handle-code/shared-as-mut.stderr

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ error[E0271]: type mismatch resolving `<SharedFoo as HandleDescriptor>::Mutable
1414
--> tests/invalid-handle-code/shared-as-mut.rs:11:44
1515
|
1616
11 | let h: Handle<SharedFoo> = Box::new(s).into();
17-
| ^^^^ expected `True`, found `False`
17+
| ^^^^ type mismatch resolving `<SharedFoo as HandleDescriptor>::Mutable == True`
1818
|
19+
note: expected this to be `True`
20+
--> tests/invalid-handle-code/shared-as-mut.rs:6:1
21+
|
22+
6 | #[handle_descriptor(target=Foo, mutable=false, sized=true)]
23+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1924
= note: required for `Handle<SharedFoo>` to implement `From<Box<Foo>>`
2025
= note: required for `Box<Foo>` to implement `Into<Handle<SharedFoo>>`
26+
= note: this error originates in the attribute macro `handle_descriptor` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)