Add rustfmt.toml and enable auto formatting (Fixes #7)

This commit is contained in:
Keavon Chambers
2020-07-12 16:20:28 -07:00
parent c49c00100e
commit 848228dd45
20 changed files with 541 additions and 439 deletions
+5 -2
View File
@@ -1,4 +1,3 @@
use crate::layout_abstract_types::*;
#[derive(Debug)]
@@ -26,7 +25,11 @@ pub struct LayoutAbstractTag {
impl LayoutAbstractTag {
pub fn new(namespace: String, name: String) -> Self {
Self { namespace, name, attributes: Vec::new() }
Self {
namespace,
name,
attributes: Vec::new(),
}
}
pub fn add_attribute(&mut self, attribute: Attribute) {