It fixes a FTBFS against ruby3.0 (ongoing transition). This is the same patch proposed here to libguestfs:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998636