summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Normand <inognitas@bitbucket.org>2016-11-01 16:08:08 +0100
committerAurélien Normand <inognitas@bitbucket.org>2016-11-01 16:08:08 +0100
commit664786a4ed877973c250141790a6a1f6a94ba9f3 (patch)
tree521595738d5ae4d4ffa8e631e568e4d70870b6ae
parent40da2112d0682143d1b083c461023446375f7326 (diff)
Fix #121: call unwrap() directly instead of calling except()
-rwxr-xr-xsrc/clang.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clang.rs b/src/clang.rs
index c7b3c223..ba6fc7f6 100755
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -197,8 +197,7 @@ impl Cursor {
/// Is the referent a fully specialized template specialization without any
/// remaining free template arguments?
pub fn is_fully_specialized_template(&self) -> bool {
- self.is_template() && self.num_template_args()
- .expect("Not a class template specialization") > 0
+ self.is_template() && self.num_template_args().unwrap() > 0
}
/// Is the referent a template specialization that still has remaining free