docs: add panics section

This commit is contained in:
steven-omaha
2023-03-16 15:32:38 +01:00
parent c494785148
commit c27eb35575
@@ -83,6 +83,10 @@ pub trait Backend: Debug {
/// Mark the packages as non-explicit / dependency using the underlying
/// package manager.
///
/// # Panics
///
/// This method shall panic when the backend does not support depedent packages.
fn make_dependency(&self, packages: &[Package]) -> Result<ExitStatus> {
let mut cmd = Command::new(self.get_binary());
cmd.args(self.get_switches_make_dependency());