MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-core/src/pristine/capability.rs:109–122  ·  view source on GitHub ↗
(&self, formatter: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

107
108impl fmt::Display for UnsupportedRepositoryCapability {
109 fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
110 match self.supported_version {
111 Some(supported) => write!(
112 formatter,
113 "'{}' version {} (this build supports through version {})",
114 self.id, self.required_version, supported
115 ),
116 None => write!(
117 formatter,
118 "'{}' version {} (not supported by this build)",
119 self.id, self.required_version
120 ),
121 }
122 }
123}
124
125pub(crate) fn unsupported_requirements(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected