We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1305c97 commit 538a21aCopy full SHA for 538a21a
1 file changed
libcc2rs/src/va_args.rs
@@ -49,10 +49,6 @@ pub struct VaList<'a> {
49
}
50
51
impl<'a> VaList<'a> {
52
- pub fn empty() -> Self {
53
- VaList { args: &[], pos: 0 }
54
- }
55
-
56
pub fn new(args: &'a [VaArg]) -> Self {
57
VaList { args, pos: 0 }
58
@@ -64,6 +60,12 @@ impl<'a> VaList<'a> {
64
60
65
61
66
62
63
+impl Default for VaList<'_> {
+ fn default() -> Self {
+ VaList { args: &[], pos: 0 }
+ }
67
+}
68
+
69
impl Clone for VaList<'_> {
70
fn clone(&self) -> Self {
71
VaList {
0 commit comments