MCPcopy Create free account
hub / github.com/bootc-dev/bootc / increment

Method increment

crates/tmpfiles/src/lib.rs:32–35  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

30
31impl BootcTmpfilesGeneration {
32 fn increment(&mut self) {
33 // SAFETY: We shouldn't ever wrap here
34 self.0 = self.0.checked_add(1).unwrap();
35 }
36
37 fn path(&self) -> Utf8PathBuf {
38 format!("{TMPFILESD}/{BOOTC_GENERATED_PREFIX}-{}.conf", self.0).into()

Callers 2

read_tmpfiles_from_dirFunction · 0.80

Calls

no outgoing calls

Tested by 1