projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
04fcb2d
)
Fix indentation on trait `free` documentation
author
Matt Corallo
<git@bluematt.me>
Wed, 10 Mar 2021 03:45:25 +0000
(22:45 -0500)
committer
Matt Corallo
<git@bluematt.me>
Wed, 10 Mar 2021 03:45:25 +0000
(22:45 -0500)
c-bindings-gen/src/main.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/main.rs
b/c-bindings-gen/src/main.rs
index 9665fdc3008cc015e1c487065e03e16a93118a37..3a7bfd6c584d0d4f131ce7ea17ec2dc92487a474 100644
(file)
--- a/
c-bindings-gen/src/main.rs
+++ b/
c-bindings-gen/src/main.rs
@@
-382,8
+382,8
@@
fn writeln_trait<'a, 'b, W: std::io::Write>(w: &mut W, t: &'a syn::ItemTrait, ty
});
}
) );
});
}
) );
- writeln!(w, "/// Frees any resources associated with this object given its this_arg pointer.").unwrap();
- writeln!(w, "/// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed.").unwrap();
+ writeln!(w, "
\t
/// Frees any resources associated with this object given its this_arg pointer.").unwrap();
+ writeln!(w, "
\t
/// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed.").unwrap();
writeln!(w, "\tpub free: Option<extern \"C\" fn(this_arg: *mut c_void)>,").unwrap();
generated_fields.push("free".to_owned());
writeln!(w, "}}").unwrap();
writeln!(w, "\tpub free: Option<extern \"C\" fn(this_arg: *mut c_void)>,").unwrap();
generated_fields.push("free".to_owned());
writeln!(w, "}}").unwrap();