[COMMITTED 014/101] gccrs: resolve: Format if properly

arthur.cohen@embecosm.com arthur.cohen@embecosm.com
Tue Jan 30 12:06:30 GMT 2024


From: Arthur Cohen <arthur.cohen@embecosm.com>

gcc/rust/ChangeLog:

	* resolve/rust-ast-resolve-path.cc (ResolvePath::resolve_path): Format.
---
 gcc/rust/resolve/rust-ast-resolve-path.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/rust/resolve/rust-ast-resolve-path.cc b/gcc/rust/resolve/rust-ast-resolve-path.cc
index 9e982d0610e..56c352e13ea 100644
--- a/gcc/rust/resolve/rust-ast-resolve-path.cc
+++ b/gcc/rust/resolve/rust-ast-resolve-path.cc
@@ -368,9 +368,7 @@ ResolvePath::resolve_path (AST::SimplePath *expr)
       //   	      is_final_segment ? "true" : "false");
       if (resolved_node_id == UNKNOWN_NODEID && !is_first_segment
 	  && is_final_segment && segment.is_lower_self_seg ())
-	{
-	  resolved_node_id = previous_resolved_node_id;
-	}
+	resolved_node_id = previous_resolved_node_id;
 
       // final check
       if (resolved_node_id == UNKNOWN_NODEID)
-- 
2.42.1



More information about the Gcc-rust mailing list