hyper::Error is error type that originated from within hyper and consumed by client code. you should not need to produce an hyper:Error. please describe the problem you are trying to solve and how you are calling hyper and hyper-staticfile, and maybe people can give suggestions
You're right, this is a case of XY problem. I made a mistake while copying sample code.
Everything is now fixed.
For anyone stumbling across this on the internet. If you are implementing a hyper::Service for your custom struct, for the Error field, anyhow::Error worked for me.