ソースを参照

Remove some trailing whitespace (#58)

Columbus240 6 年 前
コミット
058b8ebd73
2 ファイル変更4 行追加4 行削除
  1. 3 3
      src/framebuffer.rs
  2. 1 1
      src/lib.rs

+ 3 - 3
src/framebuffer.rs

@@ -15,7 +15,7 @@ pub struct FramebufferTag<'a> {
 #[derive(Debug, PartialEq)]
 pub enum FramebufferType<'a> {
     Indexed {
-        palette: &'a [FramebufferColor]   
+        palette: &'a [FramebufferColor]
     },
     RGB {
         red: FramebufferField,
@@ -61,8 +61,8 @@ pub fn framebuffer_tag<'a>(tag: &'a Tag) -> FramebufferTag<'a> {
         1 => {
             let red_pos = reader.read_u8();     // These refer to the bit positions of the MSB of each field
             let red_mask = reader.read_u8();    // And then the length of the field from MSB to LSB
-            let green_pos = reader.read_u8();   
-            let green_mask = reader.read_u8();  
+            let green_pos = reader.read_u8();
+            let green_mask = reader.read_u8();
             let blue_pos = reader.read_u8();
             let blue_mask = reader.read_u8();
             FramebufferType::RGB {

+ 1 - 1
src/lib.rs

@@ -311,7 +311,7 @@ mod tests {
     #[test]
     fn framebuffer_tag_rgb() {
         // direct RGB mode test:
-        // taken from GRUB2 running in QEMU at 
+        // taken from GRUB2 running in QEMU at
         // 1280x720 with 32bpp in BGRA format.
         #[repr(C, align(8))]
         struct Bytes([u8; 56]);