MCPcopy Create free account
hub / github.com/archlinux/alpm / check

Method check

alpm-mtree/src/mtree/path_validation_error.rs:47–53  ·  view source on GitHub ↗

Checks if errors have been appended and consumes `self`. # Errors Returns an error if one or more errors have been appended.

(self)

Source from the content-addressed store, hash-verified

45 ///
46 /// Returns an error if one or more errors have been appended.
47 pub fn check(self) -> Result<(), crate::Error> {
48 if !self.errors.is_empty() {
49 return Err(crate::Error::PathValidation(self));
50 }
51
52 Ok(())
53 }
54}
55
56impl Display for PathValidationErrors {

Callers 1

validate_pathsMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected