fix(library/rewriter): unused variable warnings