This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit eea52fd02c66dae3ff510298dc1fa8c6cb9c8a42
Author: Andrew Stitcher <astitc...@apache.org>
AuthorDate: Wed Jun 1 20:39:38 2022 -0400

    PROTON-2557: Ruby change for introduction of pn_tostring
---
 ruby/lib/util/wrapper.rb | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/ruby/lib/util/wrapper.rb b/ruby/lib/util/wrapper.rb
index 795c0022d..e2f8592bb 100644
--- a/ruby/lib/util/wrapper.rb
+++ b/ruby/lib/util/wrapper.rb
@@ -129,13 +129,7 @@ module Qpid::Proton
 
       def inspect
         return "#{self.class}<nil>" unless @impl
-        pstr = Cproton.pn_string("")
-        begin
-          Cproton.pn_inspect(@impl, pstr)
-          return Cproton.pn_string_get(pstr)
-        ensure
-          Cproton.pn_free(pstr)
-        end
+        return Cproton.pn_tostring(@impl)
       end
 
       def to_s() inspect; end


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to