diff options
| author | Andre Bogus <bogusandre@gmail.com> | 2018-05-09 01:41:44 +0200 |
|---|---|---|
| committer | Andre Bogus <bogusandre@gmail.com> | 2018-05-09 02:01:37 +0200 |
| commit | e333725664c45874262ecb11e511c17cfd4672f0 (patch) | |
| tree | b5f01abb2bc85e81b5b6f16c8ec4b4eb2962e2f6 /src/librustc_data_structures/control_flow_graph | |
| parent | 8ff4b42064b374bb62043f7729f84b6d979c7667 (diff) | |
| download | rust-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.rs | 4 |
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() |
