about summary refs log tree commit diff
path: root/src/librustc_data_structures/control_flow_graph
diff options
context:
space:
mode:
authorAndre Bogus <bogusandre@gmail.com>2018-05-09 01:41:44 +0200
committerAndre Bogus <bogusandre@gmail.com>2018-05-09 02:01:37 +0200
commite333725664c45874262ecb11e511c17cfd4672f0 (patch)
treeb5f01abb2bc85e81b5b6f16c8ec4b4eb2962e2f6 /src/librustc_data_structures/control_flow_graph
parent8ff4b42064b374bb62043f7729f84b6d979c7667 (diff)
downloadrust-e333725664c45874262ecb11e511c17cfd4672f0.tar.gz
rust-e333725664c45874262ecb11e511c17cfd4672f0.zip
use fmt::Result where applicable
Diffstat (limited to 'src/librustc_data_structures/control_flow_graph')
-rw-r--r--src/librustc_data_structures/control_flow_graph/dominators/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_data_structures/control_flow_graph/dominators/mod.rs b/src/librustc_data_structures/control_flow_graph/dominators/mod.rs
index dc487f1162c..54407658e6c 100644
--- a/src/librustc_data_structures/control_flow_graph/dominators/mod.rs
+++ b/src/librustc_data_structures/control_flow_graph/dominators/mod.rs
@@ -175,7 +175,7 @@ impl<Node: Idx> DominatorTree<Node> {
 }
 
 impl<Node: Idx> fmt::Debug for DominatorTree<Node> {
-    fn fmt(&self, fmt: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
         fmt::Debug::fmt(&DominatorTreeNode {
                             tree: self,
                             node: self.root,
@@ -190,7 +190,7 @@ struct DominatorTreeNode<'tree, Node: Idx> {
 }
 
 impl<'tree, Node: Idx> fmt::Debug for DominatorTreeNode<'tree, Node> {
-    fn fmt(&self, fmt: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
         let subtrees: Vec<_> = self.tree
             .children(self.node)
             .iter()