diff options
| author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-05-15 16:21:00 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-05-17 07:25:14 -0300 |
| commit | 12c36a5e3f676d5108cede6ac09204fb62fa20b1 (patch) | |
| tree | 706ea58c38cc01dca60d0d1e2661495512918668 /bindings/ruby/threads.c | |
| parent | 682479592b33b13a22143f4fe67678c066bf223a (diff) | |
ruby: create Data_Wrap_Notmuch_Object helper
This makes the code more maintainable and will help in further patches.
No functional changes.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'bindings/ruby/threads.c')
| -rw-r--r-- | bindings/ruby/threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/ruby/threads.c b/bindings/ruby/threads.c index 5885f565..19e09a7e 100644 --- a/bindings/ruby/threads.c +++ b/bindings/ruby/threads.c @@ -53,7 +53,7 @@ notmuch_rb_threads_each (VALUE self) for (; notmuch_threads_valid (threads); notmuch_threads_move_to_next (threads)) { thread = notmuch_threads_get (threads); - rb_yield (Data_Wrap_Struct (notmuch_rb_cThread, NULL, NULL, thread)); + rb_yield (Data_Wrap_Notmuch_Object (notmuch_rb_cThread, thread)); } return self; |
