]> git.lizzy.rs Git - rust.git/blobdiff - src/libpanic_unwind/dwarf/mod.rs
Various minor/cosmetic improvements to code
[rust.git] / src / libpanic_unwind / dwarf / mod.rs
index 7e0c32fe03d8a57a43f5d7b17e8264e646fdbc88..c9ae87ade283db3f0582980581434636afbdb906 100644 (file)
@@ -29,10 +29,10 @@ pub struct DwarfReader {
 
 impl DwarfReader {
     pub fn new(ptr: *const u8) -> DwarfReader {
-        DwarfReader { ptr: ptr }
+        DwarfReader { ptr }
     }
 
-    // DWARF streams are packed, so e.g. a u32 would not necessarily be aligned
+    // DWARF streams are packed, so e.g., a u32 would not necessarily be aligned
     // on a 4-byte boundary. This may cause problems on platforms with strict
     // alignment requirements. By wrapping data in a "packed" struct, we are
     // telling the backend to generate "misalignment-safe" code.