Fix lib reference

This commit is contained in:
Luke Street 2022-09-03 08:51:38 -04:00
parent 8a2078d9de
commit df7d470fe0
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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 {