diff rust/hg-core/src/revlog.rs @ 46428:5893706af3de

rust: Simplify error type for reading hex node IDs If a string is not valid hexadecimal it’s not that useful to track the precise reason. Differential Revision: https://phab.mercurial-scm.org/D9861
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 25 Jan 2021 12:28:39 +0100
parents 9eb07ab3f2d4
children 645ee7225fab
line wrap: on
line diff
--- a/rust/hg-core/src/revlog.rs	Mon Jan 25 12:00:23 2021 +0100
+++ b/rust/hg-core/src/revlog.rs	Mon Jan 25 12:28:39 2021 +0100
@@ -9,7 +9,7 @@
 pub mod nodemap;
 mod nodemap_docket;
 pub mod path_encode;
-pub use node::{Node, NodeError, NodePrefix, NodePrefixRef};
+pub use node::{FromHexError, Node, NodePrefix, NodePrefixRef};
 pub mod changelog;
 pub mod index;
 pub mod manifest;