summaryrefslogtreecommitdiff
path: root/rust-bindings/src/object_name.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust-bindings/src/object_name.rs')
-rw-r--r--rust-bindings/src/object_name.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/rust-bindings/src/object_name.rs b/rust-bindings/src/object_name.rs
index d6071780..772b0d88 100644
--- a/rust-bindings/src/object_name.rs
+++ b/rust-bindings/src/object_name.rs
@@ -34,8 +34,7 @@ impl ObjectName {
/// Create a new `ObjectName` with the given checksum and `ObjectType`.
pub fn new<S: Into<GString>>(checksum: S, object_type: ObjectType) -> ObjectName {
let checksum = checksum.into();
- let variant = object_name_serialize(checksum.as_str(), object_type)
- .expect("type checks should make this safe");
+ let variant = object_name_serialize(checksum.as_str(), object_type);
ObjectName {
variant,
checksum,
@@ -56,7 +55,6 @@ impl ObjectName {
/// Format this `ObjectName` as a string.
fn to_string(&self) -> GString {
object_to_string(self.checksum(), self.object_type())
- .expect("type checks should make this safe")
}
}