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

This commit is contained in:
Keavon Chambers
2021-03-27 01:20:51 -07:00
parent d616bfa8a1
commit 35ff5f55ea
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) {