Fix lib reference
This commit is contained in:
parent
8a2078d9de
commit
df7d470fe0
|
@ -9,6 +9,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
toolchain: [ stable, 1.51.0, nightly ]
|
toolchain: [ stable, 1.51.0, nightly ]
|
||||||
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: -D warnings
|
RUSTFLAGS: -D warnings
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use argh::FromArgs;
|
use argh::FromArgs;
|
||||||
|
|
||||||
mod lib;
|
use cwdemangle::demangle;
|
||||||
|
|
||||||
#[derive(FromArgs)]
|
#[derive(FromArgs)]
|
||||||
/// CodeWarrior C++ demangler
|
/// CodeWarrior C++ demangler
|
||||||
|
@ -12,7 +12,7 @@ struct Args {
|
||||||
|
|
||||||
fn main() -> Result<(), &'static str> {
|
fn main() -> Result<(), &'static str> {
|
||||||
let args: Args = argh::from_env();
|
let args: Args = argh::from_env();
|
||||||
return if let Some(symbol) = lib::demangle(args.symbol.as_str()) {
|
return if let Some(symbol) = demangle(args.symbol.as_str()) {
|
||||||
println!("{}", symbol);
|
println!("{}", symbol);
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue