Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 3, 2024
1 parent efd1c09 commit 0797976
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 1 addition & 2 deletions icechunk-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ fn pyicechunk_store_create<'py>(
}

#[pyfunction]
fn pyicechunk_store_from_bytes<'py>(
_py: Python<'py>,
fn pyicechunk_store_from_bytes(
bytes: Vec<u8>,
read_only: bool,
) -> PyResult<PyIcechunkStore> {
Expand Down
12 changes: 11 additions & 1 deletion icechunk/src/zarr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ impl ConsolidatedStore {
self
}

pub fn with_change_set_bytes(mut self, change_set: Vec<u8>) -> RepositoryResult<Self> {
pub fn with_change_set_bytes(
mut self,
change_set: Vec<u8>,
) -> RepositoryResult<Self> {
self.repository.change_set_bytes = Some(change_set);
Ok(self)
}
Expand Down Expand Up @@ -2106,6 +2109,7 @@ mod tests {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
]))),
unsafe_overwrite_refs: Some(true),
change_set_bytes: None,
virtual_ref_config: None,
},
config: Some(StoreOptions { get_partial_values_concurrency: 100 }),
Expand Down Expand Up @@ -2140,6 +2144,7 @@ mod tests {
version: None,
inline_chunk_threshold_bytes: None,
unsafe_overwrite_refs: None,
change_set_bytes: None,
virtual_ref_config: None,
},
config: None,
Expand All @@ -2160,6 +2165,7 @@ mod tests {
version: None,
inline_chunk_threshold_bytes: None,
unsafe_overwrite_refs: None,
change_set_bytes: None,
virtual_ref_config: None,
},
config: None,
Expand All @@ -2179,6 +2185,7 @@ mod tests {
version: None,
inline_chunk_threshold_bytes: None,
unsafe_overwrite_refs: None,
change_set_bytes: None,
virtual_ref_config: None,
},
storage: StorageConfig::InMemory { prefix: Some("prefix".to_string()) },
Expand All @@ -2198,6 +2205,7 @@ mod tests {
version: None,
inline_chunk_threshold_bytes: None,
unsafe_overwrite_refs: None,
change_set_bytes: None,
virtual_ref_config: None,
},
storage: StorageConfig::InMemory { prefix: None },
Expand All @@ -2217,6 +2225,7 @@ mod tests {
version: None,
inline_chunk_threshold_bytes: None,
unsafe_overwrite_refs: None,
change_set_bytes: None,
virtual_ref_config: None,
},
storage: StorageConfig::S3ObjectStore {
Expand Down Expand Up @@ -2255,6 +2264,7 @@ mod tests {
version: None,
inline_chunk_threshold_bytes: None,
unsafe_overwrite_refs: None,
change_set_bytes: None,
virtual_ref_config: None,
},
storage: StorageConfig::S3ObjectStore {
Expand Down

0 comments on commit 0797976

Please sign in to comment.