Skip to content

Commit e02fb3a

Browse files
committed
clippy fix
1 parent 856aff8 commit e02fb3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tket/src/resource/interval.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)