Svag matchende rim for unit-distance code