Fix lib reference
This commit is contained in:
parent
8a2078d9de
commit
df7d470fe0
|
@ -9,6 +9,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
toolchain: [ stable, 1.51.0, nightly ]
|
||||
fail-fast: false
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
steps:
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue