proxmox/src/api/section_config.rs: make record_order public

It is sometimes usable to record the order.
This commit is contained in:
Dietmar Maurer 2020-05-12 12:54:14 +02:00
parent 3adcdacc22
commit faadd5bba5

View File

@ -112,7 +112,10 @@ impl SectionConfigData {
Ok(data)
}
fn record_order(&mut self, section_id: &str) {
/// Record section ordering
///
/// Sections are written in the recorder order.
pub fn record_order(&mut self, section_id: &str) {
self.order.push_back(section_id.to_string());
}