mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
io: configparser::ConfigSet -> configmodel::Config
Summary: The latter is more lightweight. Reviewed By: DurhamG Differential Revision: D27641667 fbshipit-source-id: adce5a39fcb5d8e8d5d989fed46991e20ab3710d
This commit is contained in:
parent
4d0359740c
commit
cb58689d67
@ -7,7 +7,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
atty = "0.2"
|
||||
configparser = { path = "../configparser" }
|
||||
configmodel = { path = "../configmodel" }
|
||||
once_cell = "1.4"
|
||||
parking_lot = "0.10.2"
|
||||
pipe = "0.2"
|
||||
|
@ -5,7 +5,8 @@
|
||||
* GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
use configparser::config::ConfigSet;
|
||||
use configmodel::Config;
|
||||
use configmodel::ConfigExt;
|
||||
use once_cell::sync::Lazy;
|
||||
use parking_lot::Mutex;
|
||||
use parking_lot::RwLock;
|
||||
@ -341,7 +342,7 @@ impl IO {
|
||||
*main_io_ref = Some(Arc::downgrade(&self.inner));
|
||||
}
|
||||
|
||||
pub fn start_pager(&self, config: &ConfigSet) -> io::Result<()> {
|
||||
pub fn start_pager(&self, config: &dyn Config) -> io::Result<()> {
|
||||
let mut inner = self.inner.lock();
|
||||
if inner.pager_handle.is_some() {
|
||||
return Ok(());
|
||||
|
Loading…
Reference in New Issue
Block a user