]> khamidou — GitHub mirrors - safetensors.git/commit
Better error handling through improved `Display` and `Error` impls (#616)
authorÁrpád Goretity  <arpad@goretity.com>
Sun, 15 Jun 2025 09:11:36 +0000 (11:11 +0200)
committerGitHub <noreply@github.com>
Sun, 15 Jun 2025 09:11:36 +0000 (11:11 +0200)
commit30122417236e0deafa35001bc8f92dbd34c18c77
tree5cfd188811f1c51beecfee95d8b6c9086ccec964
parent1e2ccaa741013ae9a12dd8515aca0607004c52e2
Better error handling through improved `Display` and `Error` impls (#616)

* Better error handling: reliable `Display` impls and more useful `Error` impls

* Reliable `Display` impls and improved error formatting in Python bindings

* Remove some remaining instances of unwarranted `{:?}` formtting

---------

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
bindings/python/src/lib.rs
safetensors/src/slice.rs
safetensors/src/tensor.rs