Removed the get_cause function since it is redundant.
This commit is contained in:
parent
1633174506
commit
16878ec911
6
build.rs
6
build.rs
@ -117,7 +117,7 @@ fn build_src_file(filename: &str) -> PathBuf
|
|||||||
fn compile(src_files: &[PathBuf], output_name: &str) -> PathBuf
|
fn compile(src_files: &[PathBuf], output_name: &str) -> PathBuf
|
||||||
{
|
{
|
||||||
let c_compiler: OsString;
|
let c_compiler: OsString;
|
||||||
let mut output_file: PathBuf;
|
let output_file: PathBuf;
|
||||||
let mut initial_command: ::std::process::Command;
|
let mut initial_command: ::std::process::Command;
|
||||||
let command: &mut ::std::process::Command;
|
let command: &mut ::std::process::Command;
|
||||||
let last_command: &mut ::std::process::Command;
|
let last_command: &mut ::std::process::Command;
|
||||||
@ -188,8 +188,8 @@ fn compile_and_run(output_name: &str, src_files: &[PathBuf], args: &[PathBuf])
|
|||||||
pub fn main()
|
pub fn main()
|
||||||
{
|
{
|
||||||
let _gen_file: PathBuf;
|
let _gen_file: PathBuf;
|
||||||
let mut errno_file: PathBuf;
|
let errno_file: PathBuf;
|
||||||
let mut gen_errno_file: PathBuf;
|
let gen_errno_file: PathBuf;
|
||||||
|
|
||||||
errno_file = build_src_file(ERRNO_GENERATOR_FILENAME);
|
errno_file = build_src_file(ERRNO_GENERATOR_FILENAME);
|
||||||
_gen_file = build_output_file(ERRNO_GENERATOR_OUTPUT_FILENAME);
|
_gen_file = build_output_file(ERRNO_GENERATOR_OUTPUT_FILENAME);
|
||||||
|
@ -7,7 +7,7 @@ use binding::CInt;
|
|||||||
/// This can be used for clearing an error.
|
/// This can be used for clearing an error.
|
||||||
pub const NO_ERROR: CInt = 0;
|
pub const NO_ERROR: CInt = 0;
|
||||||
|
|
||||||
/// Include the generated C error values.
|
// Include the generated C error values.
|
||||||
include!(concat!(env!("OUT_DIR"), "/errno_values.rs"));
|
include!(concat!(env!("OUT_DIR"), "/errno_values.rs"));
|
||||||
|
|
||||||
|
|
||||||
@ -157,11 +157,6 @@ impl Error for CError
|
|||||||
{ "Detected an Error not handled by CError" }
|
{ "Detected an Error not handled by CError" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_cause(&self) -> Option<&Error>
|
|
||||||
{
|
|
||||||
None
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user