summaryrefslogtreecommitdiff
path: root/bindgen/clang.rs
diff options
context:
space:
mode:
authorChristian Poveda <31802960+pvdrz@users.noreply.github.com>2022-10-12 11:07:37 -0500
committerGitHub <noreply@github.com>2022-10-12 11:07:37 -0500
commit626797bf6c0e2602a8d5a53dae078be9b94c179c (patch)
treebed310f5a92c63feda7210891c1a541164bbaba8 /bindgen/clang.rs
parentd241e9554c393ba39e18aa3ef3fc3e14175a2b08 (diff)
parent46cd3af9c6969f1a433fe3792668844162f36ddf (diff)
Merge pull request #2302 from ferrous-systems/clonable-builder
Implement `Clone` for `Builder`
Diffstat (limited to 'bindgen/clang.rs')
-rw-r--r--bindgen/clang.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindgen/clang.rs b/bindgen/clang.rs
index ea505c87..e5113391 100644
--- a/bindgen/clang.rs
+++ b/bindgen/clang.rs
@@ -1823,7 +1823,7 @@ pub struct UnsavedFile {
impl UnsavedFile {
/// Construct a new unsaved file with the given `name` and `contents`.
- pub fn new(name: &str, contents: &str) -> UnsavedFile {
+ pub fn new(name: String, contents: String) -> UnsavedFile {
let name = CString::new(name).unwrap();
let contents = CString::new(contents).unwrap();
let x = CXUnsavedFile {