|
| 1 | +/* |
| 2 | + * Licensed to Elasticsearch B.V. under one or more contributor |
| 3 | + * license agreements. See the NOTICE file distributed with |
| 4 | + * this work for additional information regarding copyright |
| 5 | + * ownership. Elasticsearch B.V. licenses this file to you under |
| 6 | + * the Apache License, Version 2.0 (the "License"); you may |
| 7 | + * not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
1 | 19 | use crate::api_generator::code_gen::url::url_builder::PathString;
|
2 | 20 | use rustfmt_nightly::{Config, Edition, EmitMode, Input, Session};
|
3 | 21 | use serde::{Deserialize, Deserializer};
|
@@ -441,21 +459,29 @@ fn write_file(input: String, dir: &PathBuf, file: &str) -> Result<(), failure::E
|
441 | 459 |
|
442 | 460 | let mut file = File::create(&path)?;
|
443 | 461 | file.write_all(
|
444 |
| - "// ----------------------------------------------- |
445 |
| -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ |
446 |
| -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ |
447 |
| -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ |
448 |
| -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ |
449 |
| -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ |
450 |
| -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ |
| 462 | + "/* |
| 463 | + * Licensed to Elasticsearch B.V. under one or more contributor |
| 464 | + * license agreements. See the NOTICE file distributed with |
| 465 | + * this work for additional information regarding copyright |
| 466 | + * ownership. Elasticsearch B.V. licenses this file to you under |
| 467 | + * the Apache License, Version 2.0 (the \"License\"); you may |
| 468 | + * not use this file except in compliance with the License. |
| 469 | + * You may obtain a copy of the License at |
| 470 | + * |
| 471 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 472 | + * |
| 473 | + * Unless required by applicable law or agreed to in writing, |
| 474 | + * software distributed under the License is distributed on an |
| 475 | + * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 476 | + * KIND, either express or implied. See the License for the |
| 477 | + * specific language governing permissions and limitations |
| 478 | + * under the License. |
| 479 | + */ |
451 | 480 | // -----------------------------------------------
|
452 |
| -// |
453 |
| -// This file is generated, |
454 |
| -// Please do not edit it manually. |
455 |
| -// Run the following in the root of the repo: |
| 481 | +// This file is generated, Please do not edit it manually. |
| 482 | +// Run the following in the root of the repo to regenerate: |
456 | 483 | //
|
457 | 484 | // cargo run -p api_generator
|
458 |
| -// |
459 | 485 | // -----------------------------------------------
|
460 | 486 | "
|
461 | 487 | .as_bytes(),
|
|
0 commit comments