diff options
-rwxr-xr-x | src/clang.rs | 3 |
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 |