mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 10:28:12 +08:00
Add rustfmt.toml and enable auto formatting (Fixes #7)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user