summaryrefslogtreecommitdiff
path: root/rust/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/types.rs')
-rw-r--r--rust/src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs
index bb5b3883..2528237f 100644
--- a/rust/src/types.rs
+++ b/rust/src/types.rs
@@ -407,7 +407,7 @@ impl TypeBuilder {
}
/// Create a named type reference [`TypeBuilder`]. Analogous to [`Type::named_type`].
- pub fn named_type(type_reference: NamedTypeReference) -> Self {
+ pub fn named_type(type_reference: &NamedTypeReference) -> Self {
let mut is_const = Conf::new(false, MIN_CONFIDENCE).into();
let mut is_volatile = Conf::new(false, MIN_CONFIDENCE).into();
unsafe {