We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40da211 commit 664786aCopy full SHA for 664786a
src/clang.rs
@@ -197,8 +197,7 @@ impl Cursor {
197
/// Is the referent a fully specialized template specialization without any
198
/// remaining free template arguments?
199
pub fn is_fully_specialized_template(&self) -> bool {
200
- self.is_template() && self.num_template_args()
201
- .expect("Not a class template specialization") > 0
+ self.is_template() && self.num_template_args().unwrap() > 0
202
}
203
204
/// Is the referent a template specialization that still has remaining free
0 commit comments