File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed
Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use crate::currentprocess::Process;
66/// Stand-in for std::io::Stdin
77pub trait Stdin {
88 fn lock ( & self ) -> Box < dyn StdinLock + ' _ > ;
9- fn read_line ( & self , buf : & mut String ) -> Result < usize > ;
109}
1110
1211/// Stand-in for std::io::StdinLock
@@ -20,10 +19,6 @@ impl Stdin for io::Stdin {
2019 fn lock ( & self ) -> Box < dyn StdinLock + ' _ > {
2120 Box :: new ( io:: Stdin :: lock ( self ) )
2221 }
23-
24- fn read_line ( & self , buf : & mut String ) -> Result < usize > {
25- io:: Stdin :: read_line ( self , buf)
26- }
2722}
2823
2924// -------------- stdout -------------------------------
@@ -133,9 +128,6 @@ mod test_support {
133128 inner : self . 0 . lock ( ) . unwrap_or_else ( |e| e. into_inner ( ) ) ,
134129 } )
135130 }
136- fn read_line ( & self , buf : & mut String ) -> Result < usize > {
137- self . lock ( ) . read_line ( buf)
138- }
139131 }
140132
141133 // ----------------------- test support for writers ------------------
Original file line number Diff line number Diff line change @@ -146,17 +146,6 @@ impl ColorableTerminal {
146146 }
147147 }
148148
149- pub fn bg ( & mut self , color : Color ) -> io:: Result < ( ) > {
150- match self . inner . lock ( ) . unwrap ( ) . deref_mut ( ) {
151- TerminalInner :: StandardStream ( s, spec) => {
152- spec. set_bg ( Some ( color) ) ;
153- s. set_color ( spec)
154- }
155- #[ cfg( feature = "test" ) ]
156- TerminalInner :: TestWriter ( _, _) => Ok ( ( ) ) ,
157- }
158- }
159-
160149 pub fn attr ( & mut self , attr : Attr ) -> io:: Result < ( ) > {
161150 match self . inner . lock ( ) . unwrap ( ) . deref_mut ( ) {
162151 TerminalInner :: StandardStream ( s, spec) => {
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ impl Manifestation {
325325 Ok ( UpdateStatus :: Changed )
326326 }
327327
328+ #[ cfg( test) ]
328329 pub fn uninstall (
329330 & self ,
330331 manifest : & Manifest ,
You can’t perform that action at this time.
0 commit comments