Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/revlog/index.rs @ 52306:a876ab6c3fd5
rust: fix `cargo doc` warnings
It makes sense to keep our doc build happy, even if it is lacking.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 15:17:54 +0100 |
parents | a3fa37bdb7ec |
children | 393ad2685fb4 |
comparison
equal
deleted
inserted
replaced
52305:f69a3f55fa9b | 52306:a876ab6c3fd5 |
---|---|
307 /// Logically equivalent to a mapping whose keys are [`BaseRevision`] and | 307 /// Logically equivalent to a mapping whose keys are [`BaseRevision`] and |
308 /// values sets of [`BaseRevision`] | 308 /// values sets of [`BaseRevision`] |
309 /// | 309 /// |
310 /// TODO the dubious part is insisting that errors must be RevlogError | 310 /// TODO the dubious part is insisting that errors must be RevlogError |
311 /// we would probably need to sprinkle some magic here, such as an associated | 311 /// we would probably need to sprinkle some magic here, such as an associated |
312 /// type that would be Into<RevlogError> but even that would not be | 312 /// type that would be `Into<RevlogError>` but even that would not be |
313 /// satisfactory, as errors potentially have nothing to do with the revlog. | 313 /// satisfactory, as errors potentially have nothing to do with the revlog. |
314 pub trait SnapshotsCache { | 314 pub trait SnapshotsCache { |
315 fn insert_for( | 315 fn insert_for( |
316 &mut self, | 316 &mut self, |
317 rev: BaseRevision, | 317 rev: BaseRevision, |