summaryrefslogtreecommitdiff
path: root/rust/src/component.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/component.rs')
-rw-r--r--rust/src/component.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/component.rs b/rust/src/component.rs
index ae5fd55e..4c5d5992 100644
--- a/rust/src/component.rs
+++ b/rust/src/component.rs
@@ -164,7 +164,7 @@ impl Component {
unsafe { BnString::into_string(result) }
}
- pub fn set_name<S: IntoCStr>(&self, name: S) {
+ pub fn set_name(&self, name: &str) {
let name = name.to_cstr();
unsafe { BNComponentSetName(self.handle.as_ptr(), name.as_ptr()) }
}