Mercurial > public > mercurial-scm > hg
view rust/hg-core/src/config.rs @ 46619:f2fc34e88238
copies-rust: remove an unnecessary format!() inside assert!()
The `assert!()` macro supports formatting. Rust 2021 no longer
supports an unnecessary `format!()` inside it. I noticed because I
recently update my Rust toolchain and `test-check-cargo-lock.t`
started failing.
Differential Revision: https://phab.mercurial-scm.org/D10085
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 01 Mar 2021 14:44:29 -0800 |
parents | a687a7f27951 |
children | ebdef6283798 |
line wrap: on
line source
// config.rs // // Copyright 2020 // Valentin Gatien-Baron, // Raphaël Gomès <rgomes@octobus.net> // // This software may be used and distributed according to the terms of the // GNU General Public License version 2 or any later version. //! Mercurial config parsing and interfaces. mod config; mod layer; mod values; pub use config::{Config, ConfigValueParseError}; pub use layer::{ConfigError, ConfigParseError};