[librsvg: 7/38] Use unreachable!() for invalid property IDs
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/38] Use unreachable!() for invalid property IDs
- Date: Fri, 25 Jan 2019 19:37:57 +0000 (UTC)
commit 6e679ae4bf79cd5e0e225d0eb5ee81c5cfd45488
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Jan 17 08:39:18 2019 -0600
Use unreachable!() for invalid property IDs
rsvg_internals/src/c_api.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/c_api.rs b/rsvg_internals/src/c_api.rs
index 23ce1fb9..8345ff7e 100644
--- a/rsvg_internals/src/c_api.rs
+++ b/rsvg_internals/src/c_api.rs
@@ -182,7 +182,7 @@ impl ObjectImpl for Handle {
self.set_base_url(value.get().expect("base-uri should be a non-NULL string"));
}
- _ => unimplemented!("invalid property id {}", id),
+ _ => unreachable!("invalid property id {}", id),
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]