File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -164,10 +164,10 @@ impl<N: HugrNode> Interval<N> {
164164 /// Get the resource ID of the interval.
165165 pub fn resource_id ( & self , scope : & ResourceScope < impl HugrView < Node = N > > ) -> ResourceId {
166166 let ( node, port) = self . any_port ( ) ;
167- let resource_id = scope
167+
168+ scope
168169 . get_resource_id ( node, port)
169- . expect ( "interval port is a resource port in scope" ) ;
170- resource_id
170+ . expect ( "interval port is a resource port in scope" )
171171 }
172172
173173 /// The first port on the resource path after the interval.
@@ -342,7 +342,7 @@ impl<N: HugrNode> Interval<N> {
342342
343343 * self = Self :: new_span ( [ ( new_extrema_node, new_extrema_port) , existing_extrema] ) ;
344344
345- return Some ( extension_dir) ;
345+ Some ( extension_dir)
346346 }
347347
348348 /// Whether `pos` is smaller, larger or within the interval.
You can’t perform that action at this time.
0 commit comments