Skip to content

Commit 34c7370

Browse files
authored
Regenerate comms with @generated tags (#241)
* `format_generated_files = false` * Regenerate * Manually skip formatting generated comm files
1 parent 0000dec commit 34c7370

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

.rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# many of these require the nightly channel.
55

66
binop_separator = "Back"
7+
format_generated_files = false
78
format_macro_matchers = true
89
group_imports = "StdExternalCrate"
910
imports_granularity = "Item"

crates/amalthea/src/comm/help_comm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @generated
2+
13
/*---------------------------------------------------------------------------------------------
24
* Copyright (C) 2024 Posit Software, PBC. All rights reserved.
35
*--------------------------------------------------------------------------------------------*/

crates/amalthea/src/comm/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@
55
*
66
*/
77

8+
// Until rustfmt respects `@generated` when executing Format on Save, we have to manually
9+
// skip generated comm files to avoid noise while debugging them
10+
// https://github.com/rust-lang/rustfmt/issues/5080
11+
812
pub mod base_comm;
913
pub mod comm_channel;
1014
pub mod comm_manager;
15+
#[rustfmt::skip]
1116
pub mod data_explorer_comm;
1217
pub mod event;
18+
#[rustfmt::skip]
1319
pub mod help_comm;
20+
#[rustfmt::skip]
1421
pub mod plot_comm;
1522
pub mod server_comm;
23+
#[rustfmt::skip]
1624
pub mod ui_comm;
25+
#[rustfmt::skip]
1726
pub mod variables_comm;

crates/amalthea/src/comm/plot_comm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @generated
2+
13
/*---------------------------------------------------------------------------------------------
24
* Copyright (C) 2024 Posit Software, PBC. All rights reserved.
35
*--------------------------------------------------------------------------------------------*/

crates/amalthea/src/comm/ui_comm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @generated
2+
13
/*---------------------------------------------------------------------------------------------
24
* Copyright (C) 2024 Posit Software, PBC. All rights reserved.
35
*--------------------------------------------------------------------------------------------*/

crates/amalthea/src/comm/variables_comm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @generated
2+
13
/*---------------------------------------------------------------------------------------------
24
* Copyright (C) 2024 Posit Software, PBC. All rights reserved.
35
*--------------------------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)