Skip to content

Commit eca11b9

Browse files
committedNov 6, 2018
refactor: use shorthand fields
1 parent 1dceadd commit eca11b9

File tree

57 files changed

+68
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+68
-68
lines changed
 

‎src/liballoc/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ impl String {
502502
#[stable(feature = "rust1", since = "1.0.0")]
503503
pub fn from_utf8(vec: Vec<u8>) -> Result<String, FromUtf8Error> {
504504
match str::from_utf8(&vec) {
505-
Ok(..) => Ok(String { vec: vec }),
505+
Ok(..) => Ok(String { vec }),
506506
Err(e) => {
507507
Err(FromUtf8Error {
508508
bytes: vec,

‎src/libpanic_unwind/dwarf/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct Unaligned<T>(T);
2929

3030
impl DwarfReader {
3131
pub fn new(ptr: *const u8) -> DwarfReader {
32-
DwarfReader { ptr: ptr }
32+
DwarfReader { ptr }
3333
}
3434

3535
// DWARF streams are packed, so e.g. a u32 would not necessarily be aligned

0 commit comments

Comments
 (0)