In general, you can put all the method logic in a function and have both method implementations just call that function.
In almost all cases you should just #[derive(Debug)], not write an explicit implementation. After that, if for some reason you want the Display output to be the same as the Debug output, you can do this: