docs: add panics section
This commit is contained in:
@@ -83,6 +83,10 @@ pub trait Backend: Debug {
|
|||||||
|
|
||||||
/// Mark the packages as non-explicit / dependency using the underlying
|
/// Mark the packages as non-explicit / dependency using the underlying
|
||||||
/// package manager.
|
/// package manager.
|
||||||
|
///
|
||||||
|
/// # Panics
|
||||||
|
///
|
||||||
|
/// This method shall panic when the backend does not support depedent packages.
|
||||||
fn make_dependency(&self, packages: &[Package]) -> Result<ExitStatus> {
|
fn make_dependency(&self, packages: &[Package]) -> Result<ExitStatus> {
|
||||||
let mut cmd = Command::new(self.get_binary());
|
let mut cmd = Command::new(self.get_binary());
|
||||||
cmd.args(self.get_switches_make_dependency());
|
cmd.args(self.get_switches_make_dependency());
|
||||||
|
|||||||
Reference in New Issue
Block a user