Skip to content

Commit 9d5b225

Browse files
committed
chore: resolve warnings
1 parent eeea2e6 commit 9d5b225

6 files changed

Lines changed: 11 additions & 22 deletions

File tree

andax/fns/build.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
//! This file contains functions for andax
22
//! which implements procedures from building RPMs
33
//! see `anda::rpm_spec.rs`
4-
use rhai::plugin::{
5-
export_module, mem, Dynamic, FuncRegistration, ImmutableString, Module, NativeCallContext,
6-
PluginFunc, RhaiResult, TypeId,
7-
};
4+
use rhai::plugin::export_module;
85

96
// 正にこうです。 :3
107
macro_rules! rpmargs {

andax/fns/cfg.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ use crate::error::AndaxRes;
22
use anda_config::load_from_file;
33
use rhai::{
44
plugin::{
5-
export_module, mem, Dynamic, ImmutableString, Module, NativeCallContext, PluginFunc,
6-
RhaiResult, TypeId,
5+
export_module, NativeCallContext,
76
},
8-
EvalAltResult, FuncRegistration,
7+
EvalAltResult,
98
};
109
use std::path::PathBuf;
1110

andax/fns/io.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use crate::error::AndaxRes;
22
use rhai::{
33
plugin::{
4-
export_module, mem, Dynamic, FnNamespace, ImmutableString, Module, NativeCallContext,
5-
PluginFunc, RhaiResult, TypeId,
4+
export_module, Dynamic, NativeCallContext,
65
},
7-
EvalAltResult, FuncRegistration,
6+
EvalAltResult,
87
};
98
use std::io::Write;
109
use std::process::Command;

andax/fns/kokoro.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ use crate::error::{AndaxError as AErr, AndaxRes};
22
use regex::Regex;
33
use rhai::{
44
plugin::{
5-
export_module, mem, FnNamespace, ImmutableString, Module, NativeCallContext, PluginFunc,
6-
RhaiResult, TypeId,
5+
export_module, NativeCallContext,
76
},
8-
Dynamic, EvalAltResult as RhaiE, FuncRegistration,
7+
Dynamic, EvalAltResult as RhaiE,
98
};
109
type Res<T = ()> = Result<T, Box<RhaiE>>;
1110

andax/fns/tenshi.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ use crate::error::AndaxRes;
44

55
use rhai::{
66
plugin::{
7-
export_module, mem, FnNamespace, ImmutableString, Module, NativeCallContext, PluginFunc,
8-
RhaiResult, TypeId,
9-
},
10-
Dynamic, EvalAltResult as RhaiE, FuncRegistration,
7+
export_module, NativeCallContext,
8+
}, EvalAltResult as RhaiE,
119
};
1210
type Res<T = ()> = Result<T, Box<RhaiE>>;
1311

andax/fns/tsunagu.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
use crate::{error::AndaxRes, run::rf};
22
use git2::Remote;
33
use rhai::{
4-
plugin::{
5-
export_module, mem, Dynamic, EvalAltResult, FnNamespace, ImmutableString, Module,
6-
NativeCallContext, PluginFunc, RhaiResult, TypeId,
7-
},
8-
CustomType, FuncRegistration,
4+
plugin::{export_module, Dynamic, EvalAltResult, NativeCallContext},
5+
CustomType,
96
};
107
use semver::Version;
118
use serde_json::Value;

0 commit comments

Comments
 (0)