knn rust: non-transient reference to error handling.