Using collect-rs for TreeMap.