In Chapter 3, Section Supertraits, the example code defines the Displayable trait as follows:
trait Displayable: Printable {
fn display(&self);
}
But because both the Displayable and Printable traits are explicitly implemented for the Person struct, you don't need to extend the Displayable trait for Printable. Therefore in future editions of this book, please modify the section and the example code to actually illustrate super traits inaction, and providing the benefit of super traits.
In Chapter 3, Section Supertraits, the example code defines the Displayable trait as follows:
But because both the Displayable and Printable traits are explicitly implemented for the Person struct, you don't need to extend the Displayable trait for Printable. Therefore in future editions of this book, please modify the section and the example code to actually illustrate super traits inaction, and providing the benefit of super traits.