We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b30385 commit f7fafb1Copy full SHA for f7fafb1
src/clang.rs
@@ -193,7 +193,7 @@ impl Cursor {
193
/// Is the referent a fully specialized template specialization without any
194
/// remaining free template arguments?
195
pub fn is_fully_specialized_template(&self) -> bool {
196
- self.is_template() && self.num_template_args().unwrap() > 0
+ self.is_template() && self.num_template_args().unwrap_or(0) > 0
197
}
198
199
/// Is the referent a template specialization that still has remaining free
0 commit comments