Skip to content

Commit

Permalink
Ok(w.write_all(&b)?) -> w.write_all(&b)
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Sep 12, 2024
1 parent 3bac661 commit 4b8eb26
Show file tree
Hide file tree
Showing 25 changed files with 100 additions and 100 deletions.
8 changes: 4 additions & 4 deletions lib/xdrgen/generators/rust/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -690,7 +690,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -713,7 +713,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -736,7 +736,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/block_comments.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/const.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/enum.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/nesting.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/optional.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/struct.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/test.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions spec/output/generator_spec_rust/union.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl WriteXdr for i32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -700,7 +700,7 @@ impl WriteXdr for u32 {
let b: [u8; 4] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -723,7 +723,7 @@ impl WriteXdr for i64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand All @@ -746,7 +746,7 @@ impl WriteXdr for u64 {
let b: [u8; 8] = self.to_be_bytes();
w.with_limited_depth(|w| {
w.consume_len(b.len())?;
Ok(w.write_all(&b)?)
w.write_all(&b)
})
}
}
Expand Down
Loading

0 comments on commit 4b8eb26

Please sign in to comment.