@@ -22,9 +22,9 @@ use tui_textarea::TextArea;
2222use crate :: application:: {
2323 network:: {
2424 connection:: EstablishedConnection ,
25- proto:: manage :: {
26- screen :: { self , WriteReq } ,
27- server ,
25+ proto:: {
26+ common :: common_server ,
27+ manage :: screen :: { self , WriteReq } ,
2828 } ,
2929 } ,
3030 util:: {
@@ -41,7 +41,7 @@ use crate::application::{
4141pub struct ScreenTab {
4242 /* Connection */
4343 connection : Arc < EstablishedConnection > ,
44- server : server :: Short ,
44+ server : common_server :: Short ,
4545 stream : Streaming < screen:: Lines > ,
4646
4747 /* State */
@@ -63,7 +63,9 @@ pub struct ScreenTab {
6363impl ScreenTab {
6464 /// Creates a new screen tab.
6565 /// This function will create a window stack to get the required information to display the screen.
66- pub fn new_stack ( connection : Arc < EstablishedConnection > ) -> FetchWindow < Vec < server:: Short > > {
66+ pub fn new_stack (
67+ connection : Arc < EstablishedConnection > ,
68+ ) -> FetchWindow < Vec < common_server:: Short > > {
6769 FetchWindow :: new (
6870 connection. get_servers ( ) ,
6971 connection,
@@ -90,7 +92,7 @@ impl ScreenTab {
9092
9193 pub fn new (
9294 connection : Arc < EstablishedConnection > ,
93- server : server :: Short ,
95+ server : common_server :: Short ,
9496 stream : Streaming < screen:: Lines > ,
9597 ) -> Self {
9698 let mut command = TextArea :: default ( ) ;
@@ -265,7 +267,7 @@ impl ScreenTab {
265267
266268 // Calculate the height/lines of the content area
267269 self . update_lines (
268- paragraph. line_count ( content_area. width ) , // Might be removed in the future my ratatui
270+ paragraph. line_count ( content_area. width ) , // Might be removed in the future by ratatui
269271 content_area. height ,
270272 ) ;
271273
@@ -297,7 +299,7 @@ impl ScreenTab {
297299 }
298300}
299301
300- impl Display for server :: Short {
302+ impl Display for common_server :: Short {
301303 fn fmt ( & self , formatter : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
302304 write ! ( formatter, "{}" , self . name)
303305 }
0 commit comments