Skip to content

Commit d4e64a0

Browse files
Remove unused_qualifications
Following the unused_qualifications lint when building with Rust Nightly, remove the errors caused by the lint. Signed-off-by: Tomás González <[email protected]>
1 parent f2a459e commit d4e64a0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

fuzz/fuzz_targets/fuzz_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ lazy_static! {
1515
log_setup();
1616
let config_file = String::from("./run_config.toml");
1717
let config_file =
18-
::std::fs::read_to_string(config_file).expect("Failed to read configuration file");
18+
std::fs::read_to_string(config_file).expect("Failed to read configuration file");
1919
let config: ServiceConfig =
2020
toml::from_str(&config_file).expect("Failed to parse service configuration");
2121
ServiceBuilder::build_service(&config).expect("Failed to initialize service")

src/bin/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn main() -> Result<()> {
6565
let _ = flag::register(SIGINT, kill_signal.clone())?;
6666
let _ = flag::register(SIGHUP, reload_signal.clone())?;
6767

68-
let mut config_file = ::std::fs::read_to_string(opts.config.clone()).map_err(|e| {
68+
let mut config_file = std::fs::read_to_string(opts.config.clone()).map_err(|e| {
6969
Error::new(
7070
e.kind(),
7171
format!("Failed to read config file from path: {}", opts.config),
@@ -122,7 +122,7 @@ fn main() -> Result<()> {
122122
drop(listener);
123123
drop(threadpool);
124124

125-
config_file = ::std::fs::read_to_string(opts.config.clone()).map_err(|e| {
125+
config_file = std::fs::read_to_string(opts.config.clone()).map_err(|e| {
126126
Error::new(
127127
e.kind(),
128128
format!("Failed to read config file from path: {}", opts.config),
@@ -149,7 +149,7 @@ fn main() -> Result<()> {
149149
trace!("handle_request egress");
150150
});
151151
} else {
152-
::std::thread::sleep(Duration::from_millis(
152+
std::thread::sleep(Duration::from_millis(
153153
config
154154
.core_settings
155155
.idle_listener_sleep_duration

src/utils/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn config_to_toml(file_name: String) -> ServiceConfig {
2222
panic!();
2323
}
2424

25-
let config_file = ::std::fs::read_to_string(new_config_path.clone())
25+
let config_file = std::fs::read_to_string(new_config_path.clone())
2626
.map_err(|e| {
2727
error!(
2828
"Failed to read config file from path: {:#?}\nError: {:#?}",

0 commit comments

Comments
 (0)