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:
Jun Wu 2021-04-12 14:28:29 -07:00 committed by Facebook GitHub Bot
parent 4d0359740c
commit cb58689d67
2 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -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(());