Name this and put in a separate function. It seems to me it does have a meaning (average/share?). A name will make it more clear, and you can even put a longer comment explaining what it is and what it does.
let delta = (upper - lower) / (usize::max(n - 1, 1) as f32);
This is assuming you don't add delta to anything when n == 1 except when it is multiplied by 0.
If you need to use it more than once, I'm with everyone else: just give it a function!
It's the interval between n equally spaced points, with the first at lower and the last at upper.
Moreover, the purpose of the if is to make it well-defined for the case of a single point. Can't speak for why, but I do know this is a common need when working with polylines (e.g. n=1 would be the case where a point is created for each vertex of a polyline; n=10 is when a point is created for each vertex as well as 9 points in-between each pair; etc.)