Memory safety isn't the only benefit of rewriting C code in Rust. IMO it's maybe not even the biggest.
For example you also get a far stronger type system (leading to fewer logic bugs) and modern tooling.