diff options
author | Christian Poveda <31802960+pvdrz@users.noreply.github.com> | 2022-10-12 11:07:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 11:07:37 -0500 |
commit | 626797bf6c0e2602a8d5a53dae078be9b94c179c (patch) | |
tree | bed310f5a92c63feda7210891c1a541164bbaba8 /bindgen/clang.rs | |
parent | d241e9554c393ba39e18aa3ef3fc3e14175a2b08 (diff) | |
parent | 46cd3af9c6969f1a433fe3792668844162f36ddf (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.rs | 2 |
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 { |