minor formatting change (#7503)

This commit is contained in:
William Cheng 2020-09-25 10:16:26 +08:00 committed by GitHub
parent 7b1563326a
commit 5dffbabc74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,10 +40,10 @@ import org.slf4j.LoggerFactory;
import java.io.File; import java.io.File;
import java.net.URL; import java.net.URL;
import java.util.*; import java.util.*;
import java.util.regex.*;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static org.openapitools.codegen.utils.OnceLogger.once;
import static org.openapitools.codegen.utils.StringUtils.camelize; import static org.openapitools.codegen.utils.StringUtils.camelize;
import static org.openapitools.codegen.utils.StringUtils.underscore; import static org.openapitools.codegen.utils.StringUtils.underscore;
@ -329,7 +329,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig {
*/ */
@Override @Override
public String getHelp() { public String getHelp() {
return "Generates a Rust client/server library (beta) using the swagger-codegen project."; return "Generates a Rust client/server library (beta) using the openapi-generator project.";
} }
@Override @Override
@ -1544,9 +1544,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig {
// the user than the alternative. // the user than the alternative.
LOGGER.warn("Ignoring additionalProperties (see https://github.com/OpenAPITools/openapi-generator/issues/318) alongside defined properties"); LOGGER.warn("Ignoring additionalProperties (see https://github.com/OpenAPITools/openapi-generator/issues/318) alongside defined properties");
cm.dataType = null; cm.dataType = null;
} } else {
else
{
cm.dataType = "std::collections::HashMap<String, " + cm.additionalPropertiesType + ">"; cm.dataType = "std::collections::HashMap<String, " + cm.additionalPropertiesType + ">";
} }
} else if (cm.dataType != null) { } else if (cm.dataType != null) {