@@ -72,36 +72,70 @@ impl ContextualPriority for Hoverable<'_> {
7272}
7373
7474impl ToHoverMarkdown for Hoverable < ' _ > {
75- fn hover_headline < W : std:: fmt:: Write > ( & self , writer : & mut W , schema_cache : & SchemaCache ) -> Result < ( ) , std:: fmt:: Error > {
75+ fn hover_headline < W : std:: fmt:: Write > (
76+ & self ,
77+ writer : & mut W ,
78+ schema_cache : & SchemaCache ,
79+ ) -> Result < ( ) , std:: fmt:: Error > {
7680 match self {
77- Hoverable :: Table ( table) => ToHoverMarkdown :: hover_headline ( * table, writer, schema_cache) ,
78- Hoverable :: Column ( column) => ToHoverMarkdown :: hover_headline ( * column, writer, schema_cache) ,
79- Hoverable :: Function ( function) => ToHoverMarkdown :: hover_headline ( * function, writer, schema_cache) ,
81+ Hoverable :: Table ( table) => {
82+ ToHoverMarkdown :: hover_headline ( * table, writer, schema_cache)
83+ }
84+ Hoverable :: Column ( column) => {
85+ ToHoverMarkdown :: hover_headline ( * column, writer, schema_cache)
86+ }
87+ Hoverable :: Function ( function) => {
88+ ToHoverMarkdown :: hover_headline ( * function, writer, schema_cache)
89+ }
8090 Hoverable :: Role ( role) => ToHoverMarkdown :: hover_headline ( * role, writer, schema_cache) ,
81- Hoverable :: Schema ( schema) => ToHoverMarkdown :: hover_headline ( * schema, writer, schema_cache) ,
82- Hoverable :: PostgresType ( type_) => ToHoverMarkdown :: hover_headline ( * type_, writer, schema_cache) ,
91+ Hoverable :: Schema ( schema) => {
92+ ToHoverMarkdown :: hover_headline ( * schema, writer, schema_cache)
93+ }
94+ Hoverable :: PostgresType ( type_) => {
95+ ToHoverMarkdown :: hover_headline ( * type_, writer, schema_cache)
96+ }
8397 }
8498 }
8599
86- fn hover_body < W : std:: fmt:: Write > ( & self , writer : & mut W , schema_cache : & SchemaCache ) -> Result < bool , std:: fmt:: Error > {
100+ fn hover_body < W : std:: fmt:: Write > (
101+ & self ,
102+ writer : & mut W ,
103+ schema_cache : & SchemaCache ,
104+ ) -> Result < bool , std:: fmt:: Error > {
87105 match self {
88106 Hoverable :: Table ( table) => ToHoverMarkdown :: hover_body ( * table, writer, schema_cache) ,
89107 Hoverable :: Column ( column) => ToHoverMarkdown :: hover_body ( * column, writer, schema_cache) ,
90- Hoverable :: Function ( function) => ToHoverMarkdown :: hover_body ( * function, writer, schema_cache) ,
108+ Hoverable :: Function ( function) => {
109+ ToHoverMarkdown :: hover_body ( * function, writer, schema_cache)
110+ }
91111 Hoverable :: Role ( role) => ToHoverMarkdown :: hover_body ( * role, writer, schema_cache) ,
92112 Hoverable :: Schema ( schema) => ToHoverMarkdown :: hover_body ( * schema, writer, schema_cache) ,
93- Hoverable :: PostgresType ( type_) => ToHoverMarkdown :: hover_body ( * type_, writer, schema_cache) ,
113+ Hoverable :: PostgresType ( type_) => {
114+ ToHoverMarkdown :: hover_body ( * type_, writer, schema_cache)
115+ }
94116 }
95117 }
96118
97- fn hover_footer < W : std:: fmt:: Write > ( & self , writer : & mut W , schema_cache : & SchemaCache ) -> Result < bool , std:: fmt:: Error > {
119+ fn hover_footer < W : std:: fmt:: Write > (
120+ & self ,
121+ writer : & mut W ,
122+ schema_cache : & SchemaCache ,
123+ ) -> Result < bool , std:: fmt:: Error > {
98124 match self {
99125 Hoverable :: Table ( table) => ToHoverMarkdown :: hover_footer ( * table, writer, schema_cache) ,
100- Hoverable :: Column ( column) => ToHoverMarkdown :: hover_footer ( * column, writer, schema_cache) ,
101- Hoverable :: Function ( function) => ToHoverMarkdown :: hover_footer ( * function, writer, schema_cache) ,
126+ Hoverable :: Column ( column) => {
127+ ToHoverMarkdown :: hover_footer ( * column, writer, schema_cache)
128+ }
129+ Hoverable :: Function ( function) => {
130+ ToHoverMarkdown :: hover_footer ( * function, writer, schema_cache)
131+ }
102132 Hoverable :: Role ( role) => ToHoverMarkdown :: hover_footer ( * role, writer, schema_cache) ,
103- Hoverable :: Schema ( schema) => ToHoverMarkdown :: hover_footer ( * schema, writer, schema_cache) ,
104- Hoverable :: PostgresType ( type_) => ToHoverMarkdown :: hover_footer ( * type_, writer, schema_cache) ,
133+ Hoverable :: Schema ( schema) => {
134+ ToHoverMarkdown :: hover_footer ( * schema, writer, schema_cache)
135+ }
136+ Hoverable :: PostgresType ( type_) => {
137+ ToHoverMarkdown :: hover_footer ( * type_, writer, schema_cache)
138+ }
105139 }
106140 }
107141
0 commit comments