Skip to content

Commit 998f4d7

Browse files
committed
[src/{bin/main,global}.rs] cargo fmt
1 parent bcd1684 commit 998f4d7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ fn actual_main() -> dsync::Result<()> {
269269
once_connection_type: args.once_connection_type,
270270
readonly_prefixes: args.readonly_prefixes,
271271
readonly_suffixes: args.readonly_suffixes,
272-
additional_derives: args.additional_derives
272+
additional_derives: args.additional_derives,
273273
},
274274
},
275275
)?;

src/code.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ impl<'a> Struct<'a> {
198198
let mut _derives_vec = Vec::<&str>::with_capacity(10 + v.len());
199199
_derives_vec.extend(v.iter().map(|s| -> &str { s.as_ref() }));
200200
_derives_vec
201-
},
202-
None => Vec::with_capacity(10)
201+
}
202+
None => Vec::with_capacity(10),
203203
};
204204
// Default derives that exist on every struct
205205
derives_vec.extend_from_slice(&[derives::DEBUG, derives::CLONE]);

src/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ pub struct GenerationConfigOpts<'a> {
330330
pub readonly_suffixes: Vec<String>,
331331

332332
/// Add these additional derives to each generated `struct`
333-
pub additional_derives: Option<Vec<String>>
333+
pub additional_derives: Option<Vec<String>>,
334334
}
335335

336336
impl GenerationConfigOpts<'_> {

0 commit comments

Comments
 (0)