Skip to content

Commit 174120f

Browse files
committed
[Rust] Fix some linter warnings
1 parent 4a74c39 commit 174120f

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

rust/src/collaboration/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ where
243243

244244
/// Completely sync a database, pushing/pulling/merging/applying changes
245245
///
246-
/// * `metadata` - File openend from database to sync
246+
/// * `metadata` - File opened from database to sync
247247
/// * `file` - File to sync with
248248
/// * `conflict_handler` - Function to call to resolve snapshot conflicts
249249
/// * `name_changeset` - Function to call for naming a pushed changeset, if necessary
@@ -264,7 +264,7 @@ pub fn sync_database<C: DatabaseConflictHandler, N: NameChangeset>(
264264

265265
/// Completely sync a database, pushing/pulling/merging/applying changes
266266
///
267-
/// * `metadata` - File openend from database to sync
267+
/// * `metadata` - File opened from database to sync
268268
/// * `file` - File to sync with
269269
/// * `conflict_handler` - Function to call to resolve snapshot conflicts
270270
/// * `name_changeset` - Function to call for naming a pushed changeset, if necessary

rust/src/high_level_il/lift.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,7 @@ impl HighLevelILLiftedInstruction {
459459
("offset", Operand::Int(op.offset)),
460460
("member_index", Operand::MemberIndex(op.member_index)),
461461
],
462-
StructInit(op) => vec![
463-
("fields", Operand::ExprList(op.fields.clone())),
464-
],
462+
StructInit(op) => vec![("fields", Operand::ExprList(op.fields.clone()))],
465463
StructInitField(op) => vec![
466464
("offset", Operand::Int(op.offset)),
467465
("member_index", Operand::MemberIndex(op.member_index)),

0 commit comments

Comments
 (0)