Skip to content

Commit

Permalink
Reformat the code using rustfmt
Browse files Browse the repository at this point in the history
Using rustfmt 1.4.11-stable (1838235 2019-12-03)
  • Loading branch information
sylvestre authored and kinetiknz committed Mar 9, 2020
1 parent 62f4acb commit e006607
Show file tree
Hide file tree
Showing 14 changed files with 1,579 additions and 1,195 deletions.
8 changes: 3 additions & 5 deletions mp4parse/src/boxes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ macro_rules! box_database {

#[derive(Default, PartialEq, Clone)]
pub struct FourCC {
pub value: String
pub value: String,
}

impl From<u32> for FourCC {
Expand All @@ -59,9 +59,7 @@ impl From<u32> for FourCC {
_ => String::from("null"), // error to retrieve fourcc
};

FourCC {
value: box_string
}
FourCC { value: box_string }
}
}

Expand All @@ -75,7 +73,7 @@ impl From<BoxType> for FourCC {
impl<'a> From<&'a str> for FourCC {
fn from(v: &'a str) -> FourCC {
FourCC {
value: v.to_owned()
value: v.to_owned(),
}
}
}
Expand Down
Loading

0 comments on commit e006607

Please sign in to comment.