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
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: ci

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

env:
CARGO_TERM_COLOR: always

jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Clippy
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings

test:
name: Tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-targets --all-features --verbose
36 changes: 0 additions & 36 deletions .gitlab-ci.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .gitlab/issue_templates/Bug.md

This file was deleted.

36 changes: 0 additions & 36 deletions .gitlab/issue_templates/Default.md

This file was deleted.

27 changes: 0 additions & 27 deletions .gitlab/merge_request_templates/Default.md

This file was deleted.

4 changes: 1 addition & 3 deletions lib/ref_tree/src/node_mod/node_to_root_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ impl<T> Iterator for NodeToRootIterator<T> {

fn next(&mut self) -> Option<Self::Item> {
// Finish if we're at the root.
let Some(current) = self.node.clone() else {
return None;
};
let current = self.node.clone()?;

// Step up the tree.
self.node = current
Expand Down
2 changes: 1 addition & 1 deletion lib/ref_tree/src/tree_mod/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct Tree<T> {
/// Some -> Tree has at least one node.
///
/// Arc - Multi-thread simultaneous access to the root node.
/// RwLock
/// `RwLock`
/// - Ability to read from one thread, but write from others without blocking.
/// - BE writes when adding size from nodes under root, FE reads with tick/whenever.
/// - BE also reads when asking for children or going up the three.
Expand Down