Rank-one flavor violation and B-meson anomalies