fn gen_args(segment: &PathSegment<'_>) -> String