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:
matrix:
toolchain: [ stable, 1.51.0, nightly ]
fail-fast: false
env:
RUSTFLAGS: -D warnings
steps:

View File

@ -1,6 +1,6 @@
use argh::FromArgs;
mod lib;
use cwdemangle::demangle;
#[derive(FromArgs)]
/// CodeWarrior C++ demangler
@ -12,7 +12,7 @@ struct Args {
fn main() -> Result<(), &'static str> {
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);
Ok(())
} else {