Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@nightly

- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo miri setup

- name: Test with Miri
run: cargo miri test --all-features

deploy_docs:
name: Deploy documentation
runs-on: ubuntu-latest
needs: build_test
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Build documentation
run: cargo doc --all-features

- name: Finalize documentation
run: |
echo "<meta http-equiv=\"refresh\" content=\"0; url=generic_array\">" > target/doc/index.html
touch target/doc/.nojekyll

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/doc
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Crates.io](https://img.shields.io/crates/v/generic-array.svg)](https://crates.io/crates/generic-array)
[![Build Status](https://travis-ci.org/fizyk20/generic-array.svg?branch=master)](https://travis-ci.org/fizyk20/generic-array)
[![Build Status](https://github.com/fizyk20/generic-array/actions/workflows/CI.yml/badge.svg)](https://github.com/fizyk20/generic-array/actions/workflows/CI.yml)
# generic-array

This crate implements generic array types for Rust.
Expand Down
4 changes: 2 additions & 2 deletions src/impl_zeroize.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use {ArrayLength, GenericArray};
use crate::{ArrayLength, GenericArray};

use zeroize::Zeroize;

Expand All @@ -22,4 +22,4 @@ mod tests {
assert_eq!(array[0], 0);
assert_eq!(array[1], 0);
}
}
}