Skip to content

Commit

Permalink
Fix imports for new crate name
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Tested-by: Matthias Beyer <mail@beyermatthias.de>
  • Loading branch information
matthiasbeyer committed Mar 13, 2021
1 parent 9f430e8 commit bd121fa
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions examples/glob/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
extern crate glob;
extern crate config;
extern crate config_maint;

use std::path::Path;
use std::collections::HashMap;
use config::*;
use config_maint::*;
use glob::glob;

fn main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/global/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#[macro_use]
extern crate lazy_static;

extern crate config;
extern crate config_maint;

use std::error::Error;
use std::sync::RwLock;
use config::Config;
use config_maint::Config;

lazy_static! {
static ref SETTINGS: RwLock<Config> = RwLock::new(Config::default());
Expand Down
2 changes: 1 addition & 1 deletion examples/hierarchical-env/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extern crate config;
extern crate config_maint;
extern crate serde;

#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion examples/hierarchical-env/src/settings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::env;
use config::{ConfigError, Config, File, Environment};
use config_maint::{ConfigError, Config, File, Environment};

#[derive(Debug, Deserialize)]
struct Database {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extern crate config;
extern crate config_maint;

use std::collections::HashMap;

Expand Down
4 changes: 2 additions & 2 deletions examples/watch/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
extern crate config;
extern crate config_maint;
extern crate notify;

#[macro_use]
extern crate lazy_static;

use config::*;
use config_maint::*;
use std::collections::HashMap;
use std::sync::RwLock;
use notify::{RecommendedWatcher, DebouncedEvent, Watcher, RecursiveMode};
Expand Down
4 changes: 2 additions & 2 deletions tests/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
))]

extern crate chrono;
extern crate config;
extern crate config_maint;

use chrono::{DateTime, TimeZone, Utc};
use config::*;
use config_maint::*;

fn make() -> Config {
Config::default()
Expand Down
4 changes: 2 additions & 2 deletions tests/defaults.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
extern crate config;
extern crate config_maint;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;

#[derive(Debug, Serialize, Deserialize)]
#[serde(default)]
Expand Down
4 changes: 2 additions & 2 deletions tests/empty.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
extern crate config;
extern crate config_maint;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;

#[derive(Debug, Serialize, Deserialize)]
struct Settings {
Expand Down
4 changes: 2 additions & 2 deletions tests/env.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate config;
extern crate config_maint;

use config::*;
use config_maint::*;
use std::env;

#[test]
Expand Down
4 changes: 2 additions & 2 deletions tests/errors.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#![cfg(feature = "toml")]

extern crate config;
extern crate config_maint;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;
use std::path::PathBuf;

fn make() -> Config {
Expand Down
4 changes: 2 additions & 2 deletions tests/file.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![cfg(feature = "yaml")]

extern crate config;
extern crate config_maint;

use config::*;
use config_maint::*;

#[test]
fn test_file_not_required() {
Expand Down
4 changes: 2 additions & 2 deletions tests/file_hjson.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![cfg(feature = "hjson")]

extern crate config;
extern crate config_maint;
extern crate float_cmp;
extern crate serde;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;
use float_cmp::ApproxEqUlps;
use std::collections::HashMap;
use std::path::PathBuf;
Expand Down
4 changes: 2 additions & 2 deletions tests/file_ini.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![cfg(feature = "ini")]

extern crate config;
extern crate config_maint;
extern crate float_cmp;
extern crate serde;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;
use std::path::PathBuf;

#[derive(Debug, Deserialize, PartialEq)]
Expand Down
4 changes: 2 additions & 2 deletions tests/file_json.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![cfg(feature = "json")]

extern crate config;
extern crate config_maint;
extern crate float_cmp;
extern crate serde;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;
use float_cmp::ApproxEqUlps;
use std::collections::HashMap;
use std::path::PathBuf;
Expand Down
4 changes: 2 additions & 2 deletions tests/file_toml.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![cfg(feature = "toml")]

extern crate config;
extern crate config_maint;
extern crate float_cmp;
extern crate serde;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;
use float_cmp::ApproxEqUlps;
use std::collections::HashMap;
use std::path::PathBuf;
Expand Down
4 changes: 2 additions & 2 deletions tests/file_yaml.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![cfg(feature = "yaml")]

extern crate config;
extern crate config_maint;
extern crate float_cmp;
extern crate serde;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;
use float_cmp::ApproxEqUlps;
use std::collections::HashMap;
use std::path::PathBuf;
Expand Down
4 changes: 2 additions & 2 deletions tests/get.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![cfg(feature = "toml")]

extern crate config;
extern crate config_maint;
extern crate float_cmp;
extern crate serde;

#[macro_use]
extern crate serde_derive;

use config::*;
use config_maint::*;
use float_cmp::ApproxEqUlps;
use std::collections::{HashMap, HashSet};

Expand Down
4 changes: 2 additions & 2 deletions tests/merge.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![cfg(feature = "toml")]

extern crate config;
extern crate config_maint;

use config::*;
use config_maint::*;

fn make() -> Config {
let mut c = Config::default();
Expand Down
4 changes: 2 additions & 2 deletions tests/set.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate config;
extern crate config_maint;

use config::*;
use config_maint::*;

#[test]
fn test_set_scalar() {
Expand Down

0 comments on commit bd121fa

Please sign in to comment.