style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -163,7 +163,11 @@ impl SafeTensors {
|
||||
|
||||
/// Get the names of all tensors in the file.
|
||||
pub fn tensor_names(&self) -> Vec<&str> {
|
||||
self.header.tensors.keys().map(std::string::String::as_str).collect()
|
||||
self.header
|
||||
.tensors
|
||||
.keys()
|
||||
.map(std::string::String::as_str)
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Get information about a specific tensor.
|
||||
|
||||
Reference in New Issue
Block a user