Skip to content

Commit

Permalink
Update crates/packager/src/config/mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Jan 15, 2024
1 parent b9ea28e commit 01cb1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/packager/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,14 @@ impl DebianConfig {
}

/// Define the section in Debian Control file. See : https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
pub fn section<S: Into<String>>(self, section: S) -> Self {
pub fn section<S: Into<String>>(mut self, section: S) -> Self {
self.section.replace(section.into());
self
}

/// Change the priority of the Debian Package. By default, it is set to `optional`.
/// Recognized Priorities as of now are : `required`, `important`, `standard`, `optional`, `extra`
pub fn priority<S: Into<String>>(self, priority: S) -> Self {
pub fn priority<S: Into<String>>(mut self, priority: S) -> Self {
self.priority.replace(priority.into());
self
}
Expand Down

0 comments on commit 01cb1ed

Please sign in to comment.