From b7e0b642d6d298c79f92507a3ca7e70781d0bb0e Mon Sep 17 00:00:00 2001 From: Able Date: Thu, 3 Jun 2021 04:47:41 -0500 Subject: [PATCH] Removed the garbage workflow stuff --- .github/workflows/rust.yml | 25 ------------------------- src/main.rs | 4 ++-- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 8ce7155..0000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,25 +0,0 @@ -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@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - - - diff --git a/src/main.rs b/src/main.rs index 61d24ae..3ee431a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,8 +53,8 @@ impl App { .with_size(800, 600) .center_screen() .with_label("AblEditor"); - - let image = fltk::image::PngImage::load("assets/icon.png").unwrap(); + let ico = include_bytes!("../assets/icon.png"); + let image = fltk::image::PngImage::from_data(ico).unwrap(); main_win.set_icon(Some(image)); let _menu = menu::Menu::new(&s);