From 43a75482505b1f83b2edf3a710f76d1add56fe41 Mon Sep 17 00:00:00 2001 From: Wouter Doppenberg Date: Wed, 23 Aug 2023 17:49:13 +0200 Subject: [PATCH 1/2] Fixed Context struct to have usize instead of i32 --- src/snowball/algorithms/armenian.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snowball/algorithms/armenian.rs b/src/snowball/algorithms/armenian.rs index d1ba80b..0b1efbc 100644 --- a/src/snowball/algorithms/armenian.rs +++ b/src/snowball/algorithms/armenian.rs @@ -214,8 +214,8 @@ static G_v: &'static [u8; 5] = &[209, 4, 128, 0, 18]; #[derive(Clone)] struct Context { - i_p2: i32, - i_pV: i32, + i_p2: usize, + i_pV: usize, } fn r_mark_regions(env: &mut SnowballEnv, context: &mut Context) -> bool { From 4d8db2d11378a3bd2bf1fc37709391cc287d0ff0 Mon Sep 17 00:00:00 2001 From: Wouter Doppenberg Date: Wed, 23 Aug 2023 17:51:16 +0200 Subject: [PATCH 2/2] Create rust.yml --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..d54fa2f --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose