summaryrefslogtreecommitdiff
path: root/rust/examples
diff options
context:
space:
mode:
Diffstat (limited to 'rust/examples')
-rw-r--r--rust/examples/pdb-ng/src/symbol_parser.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/examples/pdb-ng/src/symbol_parser.rs b/rust/examples/pdb-ng/src/symbol_parser.rs
index cefb7dc2..7193da7d 100644
--- a/rust/examples/pdb-ng/src/symbol_parser.rs
+++ b/rust/examples/pdb-ng/src/symbol_parser.rs
@@ -1830,7 +1830,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
// Fallback in case we don't find a specific one
t = Some(Conf::new(
Type::named_type_from_type(search_type, ty.as_ref()),
- max_confidence(),
+ DEMANGLE_CONFIDENCE,
));
if self.settings.get_bool(
@@ -1849,10 +1849,10 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
// Wow!
t = Some(Conf::new(
Type::named_type_from_type(lengthy_name, ty.as_ref()),
- max_confidence(),
+ DEMANGLE_CONFIDENCE,
));
} else {
- t = Some(Conf::new(lengthy_type, max_confidence()));
+ t = Some(Conf::new(lengthy_type, DEMANGLE_CONFIDENCE));
}
}
}
@@ -1884,7 +1884,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
if let Some(ty) = self.named_types.get(&vt_name) {
t = Some(Conf::new(
Type::named_type_from_type(&vt_name, ty.as_ref()),
- max_confidence(),
+ DEMANGLE_CONFIDENCE,
));
} else {
// Sometimes the demangler has trouble with `class Foo` in templates
@@ -1896,7 +1896,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
if let Some(ty) = self.named_types.get(&vt_name) {
t = Some(Conf::new(
Type::named_type_from_type(&vt_name, ty.as_ref()),
- max_confidence(),
+ DEMANGLE_CONFIDENCE,
));
} else {
t = Some(Conf::new(