Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/currentprocess/filesource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::currentprocess::Process;
/// Stand-in for std::io::Stdin
pub trait Stdin {
fn lock(&self) -> Box<dyn StdinLock + '_>;
fn read_line(&self, buf: &mut String) -> Result<usize>;
}

/// Stand-in for std::io::StdinLock
Expand All @@ -20,10 +19,6 @@ impl Stdin for io::Stdin {
fn lock(&self) -> Box<dyn StdinLock + '_> {
Box::new(io::Stdin::lock(self))
}

fn read_line(&self, buf: &mut String) -> Result<usize> {
io::Stdin::read_line(self, buf)
}
}

// -------------- stdout -------------------------------
Expand Down Expand Up @@ -133,9 +128,6 @@ mod test_support {
inner: self.0.lock().unwrap_or_else(|e| e.into_inner()),
})
}
fn read_line(&self, buf: &mut String) -> Result<usize> {
self.lock().read_line(buf)
}
}

// ----------------------- test support for writers ------------------
Expand Down
11 changes: 0 additions & 11 deletions src/currentprocess/terminalsource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,6 @@ impl ColorableTerminal {
}
}

pub fn bg(&mut self, color: Color) -> io::Result<()> {
match self.inner.lock().unwrap().deref_mut() {
TerminalInner::StandardStream(s, spec) => {
spec.set_bg(Some(color));
s.set_color(spec)
}
#[cfg(feature = "test")]
TerminalInner::TestWriter(_, _) => Ok(()),
}
}

pub fn attr(&mut self, attr: Attr) -> io::Result<()> {
match self.inner.lock().unwrap().deref_mut() {
TerminalInner::StandardStream(s, spec) => {
Expand Down
1 change: 1 addition & 0 deletions src/dist/manifestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ impl Manifestation {
Ok(UpdateStatus::Changed)
}

#[cfg(test)]
pub fn uninstall(
&self,
manifest: &Manifest,
Expand Down