File tree 3 files changed +1
-19
lines changed
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;
6
6
/// Stand-in for std::io::Stdin
7
7
pub trait Stdin {
8
8
fn lock ( & self ) -> Box < dyn StdinLock + ' _ > ;
9
- fn read_line ( & self , buf : & mut String ) -> Result < usize > ;
10
9
}
11
10
12
11
/// Stand-in for std::io::StdinLock
@@ -20,10 +19,6 @@ impl Stdin for io::Stdin {
20
19
fn lock ( & self ) -> Box < dyn StdinLock + ' _ > {
21
20
Box :: new ( io:: Stdin :: lock ( self ) )
22
21
}
23
-
24
- fn read_line ( & self , buf : & mut String ) -> Result < usize > {
25
- io:: Stdin :: read_line ( self , buf)
26
- }
27
22
}
28
23
29
24
// -------------- stdout -------------------------------
@@ -133,9 +128,6 @@ mod test_support {
133
128
inner : self . 0 . lock ( ) . unwrap_or_else ( |e| e. into_inner ( ) ) ,
134
129
} )
135
130
}
136
- fn read_line ( & self , buf : & mut String ) -> Result < usize > {
137
- self . lock ( ) . read_line ( buf)
138
- }
139
131
}
140
132
141
133
// ----------------------- test support for writers ------------------
Original file line number Diff line number Diff line change @@ -146,17 +146,6 @@ impl ColorableTerminal {
146
146
}
147
147
}
148
148
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
-
160
149
pub fn attr ( & mut self , attr : Attr ) -> io:: Result < ( ) > {
161
150
match self . inner . lock ( ) . unwrap ( ) . deref_mut ( ) {
162
151
TerminalInner :: StandardStream ( s, spec) => {
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ impl Manifestation {
325
325
Ok ( UpdateStatus :: Changed )
326
326
}
327
327
328
+ #[ cfg( test) ]
328
329
pub fn uninstall (
329
330
& self ,
330
331
manifest : & Manifest ,
You can’t perform that action at this time.
0 commit comments