mirror of
https://github.com/hannobraun/Fornjot
synced 2025-10-14 03:48:20 +00:00
Inline redundant variable
This commit is contained in:
parent
7269315d40
commit
b18468d711
@ -52,11 +52,10 @@ impl CurveApproxCache {
|
||||
mut new_segment: CurveApproxSegment,
|
||||
) -> CurveApproxSegment {
|
||||
let curve = HandleWrapper::from(curve);
|
||||
let cache_key = curve;
|
||||
|
||||
new_segment.normalize();
|
||||
|
||||
let existing_approx = self.inner.remove(&cache_key);
|
||||
let existing_approx = self.inner.remove(&curve);
|
||||
let (approx, segment) = match existing_approx {
|
||||
Some(mut existing_approx) => {
|
||||
// An approximation for this curve already exists. We need to
|
||||
@ -99,7 +98,7 @@ impl CurveApproxCache {
|
||||
}
|
||||
};
|
||||
|
||||
self.inner.insert(cache_key, approx);
|
||||
self.inner.insert(curve, approx);
|
||||
|
||||
segment
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user