##// END OF EJS Templates
hg-core: silence dead-code warning by adding RevlogEntry::revion() accessor...
Martin von Zweigbergk -
r48895:fecfea65 default
parent child Browse files
Show More
@@ -304,6 +304,10 b" pub struct RevlogEntry<'a> {"
304 }
304 }
305
305
306 impl<'a> RevlogEntry<'a> {
306 impl<'a> RevlogEntry<'a> {
307 pub fn revision(&self) -> Revision {
308 self.rev
309 }
310
307 /// Extract the data contained in the entry.
311 /// Extract the data contained in the entry.
308 pub fn data(&self) -> Result<Cow<'_, [u8]>, RevlogError> {
312 pub fn data(&self) -> Result<Cow<'_, [u8]>, RevlogError> {
309 if self.bytes.is_empty() {
313 if self.bytes.is_empty() {
General Comments 0
You need to be logged in to leave comments. Login now