Skip to content

Commit

Permalink
fix: clippy::unnecessary_semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Feb 21, 2025
1 parent 4f564a6 commit e48ec0c
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion zarrs/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ impl<TStorage: ?Sized> Array<TStorage> {
ArrayMetadata::V2(_metadata) => {
// NOTE: The codec related options in ArrayMetadataOptions do not impact V2 codecs
}
};
}

// Convert version
match (metadata, options.metadata_convert_version()) {
Expand Down
2 changes: 1 addition & 1 deletion zarrs/src/array/codec/array_to_bytes/bytes/bytes_codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl BytesCodec {
)));
}
}
};
}

if let Some(endian) = &self.endian {
if !endian.is_native() {
Expand Down
4 changes: 2 additions & 2 deletions zarrs/src/array/codec/array_to_bytes/codec_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ impl ArrayToBytesCodecTraits for CodecChain {

if Some(codec_index) == self.cache_index {
input_handle = Arc::new(BytesPartialDecoderCache::new(&*input_handle, options)?);
};
}

let mut input_handle = {
let array_representation = array_representations.last().unwrap();
Expand Down Expand Up @@ -537,7 +537,7 @@ impl ArrayToBytesCodecTraits for CodecChain {
if Some(codec_index) == self.cache_index {
input_handle =
Arc::new(BytesPartialDecoderCache::async_new(&*input_handle, options).await?);
};
}

let mut input_handle = {
let array_representation = array_representations.last().unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn do_partial_decode<'a>(
super::IDENTIFIER.to_string(),
));
}
};
}
}
}
Ok(decoded_bytes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ impl ArrayToBytesCodecTraits for ShardingCodec {
output_view_inner_chunk
.copy_from_slice(&decoded_chunk.into_fixed()?)
.map_err(CodecError::from)?;
};
}

Ok::<_, CodecError>(())
};
Expand Down Expand Up @@ -385,7 +385,7 @@ impl ArrayToBytesCodecTraits for ShardingCodec {
&mut output_view_inner_chunk,
&options,
)?;
};
}

Ok::<_, CodecError>(())
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ impl AsyncArrayPartialDecoderTraits for AsyncShardingPartialDecoder {
.map_err(CodecError::from)
}
)?;
};
}
unsafe { shard.set_len(shard_size) };
out.push(ArrayBytes::from(shard));
}
Expand Down
2 changes: 1 addition & 1 deletion zarrs/src/array/codec/array_to_bytes/zfp/zfp_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl ZfpStream {
ZfpMode::Reversible => {
unsafe { zfp_stream_set_reversible(zfp) };
}
};
}
NonNull::new(zfp).map(Self)
}

Expand Down
2 changes: 1 addition & 1 deletion zarrs/src/group/group_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl GroupBuilder {
match &mut self.metadata {
GroupMetadata::V3(metadata) => metadata.additional_fields = additional_fields,
GroupMetadata::V2(metadata) => metadata.additional_fields = additional_fields,
};
}
self
}

Expand Down
2 changes: 1 addition & 1 deletion zarrs/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl Node {
NodeMetadata::Group(_) => {
string.push_str(name);
}
};
}
string.push('\n');
}

Expand Down
2 changes: 1 addition & 1 deletion zarrs_metadata/src/v2_to_v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub fn codec_metadata_v2_to_v3(
compressor.id(),
compressor.configuration().clone(),
)),
};
}
}

Ok(codecs)
Expand Down
2 changes: 1 addition & 1 deletion zarrs_metadata/src/v3/array/data_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl DataTypeMetadataV3 {
"string" => return Self::String,
"bytes" => return Self::Bytes,
_ => {}
};
}

if name.starts_with('r') && name.len() > 1 {
if let Ok(size_bits) = metadata.name()[1..].parse::<usize>() {
Expand Down

0 comments on commit e48ec0c

Please sign in to comment.