Use rustfmt to enforce consistent formatting
This change adds a .rustfmt.toml that includes ALL supported settings, 12 of which we have overridden to attempt to cater to our own proclivities. rustfmt is checked in the rust-nightly CI job.
This commit is contained in:
@@ -29,9 +29,9 @@ impl Priority {
|
||||
}
|
||||
|
||||
Ok(Priority {
|
||||
stream_id: head.stream_id(),
|
||||
dependency: dependency,
|
||||
})
|
||||
stream_id: head.stream_id(),
|
||||
dependency: dependency,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,10 +63,7 @@ impl StreamDependency {
|
||||
// Read the weight
|
||||
let weight = src[4];
|
||||
|
||||
Ok(StreamDependency::new(
|
||||
dependency_id,
|
||||
weight,
|
||||
is_exclusive))
|
||||
Ok(StreamDependency::new(dependency_id, weight, is_exclusive))
|
||||
}
|
||||
|
||||
pub fn dependency_id(&self) -> StreamId {
|
||||
|
||||
Reference in New Issue
Block a user