CI Linux without clippy
This commit is contained in:
parent
4a3293bd31
commit
c930e90555
10
.github/workflows/linux.yml
vendored
10
.github/workflows/linux.yml
vendored
|
@ -38,14 +38,14 @@ jobs:
|
|||
run: cargo build --bin czkawka_cli
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
RUSTFLAGS: "-C debuginfo=0"
|
||||
if: ${{ matrix.type == 'debug'}}
|
||||
|
||||
- name: Build CLI Release
|
||||
run: cargo build --release --bin czkawka_cli
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
RUSTFLAGS: "-C debuginfo=0"
|
||||
if: ${{ matrix.type == 'release'}}
|
||||
|
||||
- name: Store Linux CLI
|
||||
|
@ -156,14 +156,14 @@ jobs:
|
|||
run: cargo build --bin czkawka_gui
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
RUSTFLAGS: "-C debuginfo=0"
|
||||
if: ${{ matrix.type == 'debug'}}
|
||||
|
||||
- name: Build GUI Release
|
||||
run: cargo build --release --bin czkawka_gui
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
RUSTFLAGS: "-C debuginfo=0"
|
||||
if: ${{ matrix.type == 'release'}}
|
||||
|
||||
- name: Store Linux GUI
|
||||
|
@ -220,7 +220,7 @@ jobs:
|
|||
run: cargo build --release --bin czkawka_gui
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
RUSTFLAGS: "-C debuginfo=0"
|
||||
|
||||
- name: Download appimage dependiences
|
||||
run: |
|
||||
|
|
6
.github/workflows/windows.yml
vendored
6
.github/workflows/windows.yml
vendored
|
@ -242,7 +242,7 @@ jobs:
|
|||
matrix:
|
||||
toolchain: [ stable ]
|
||||
type: [ release ]
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
@ -333,7 +333,7 @@ jobs:
|
|||
# matrix:
|
||||
# toolchain: [ stable ]
|
||||
# type: [ release ]
|
||||
# runs-on: ubuntu-20.04
|
||||
# runs-on: ubuntu-22.04
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
#
|
||||
|
@ -424,7 +424,7 @@ jobs:
|
|||
# matrix:
|
||||
# toolchain: [ stable ]
|
||||
# type: [ release ]
|
||||
# runs-on: ubuntu-20.04
|
||||
# runs-on: ubuntu-22.04
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
#
|
||||
|
|
|
@ -209,7 +209,7 @@ fn hardlink_symlink(
|
|||
}
|
||||
} else {
|
||||
for symhardlink_data in vec_symhardlink_data {
|
||||
for (counter, file_to_symlink) in symhardlink_data.files_to_symhardlink.into_iter().enumerate() {
|
||||
for file_to_symlink in symhardlink_data.files_to_symhardlink.into_iter() {
|
||||
if let Err(e) = fs::remove_file(&file_to_symlink) {
|
||||
add_text_to_text_view(
|
||||
text_view_errors,
|
||||
|
|
|
@ -220,7 +220,7 @@ fn move_files_common(
|
|||
let mut moved_files: u32 = 0;
|
||||
|
||||
// Save to variable paths of files, and remove it when not removing all occurrences.
|
||||
'next_result: for (counter, tree_path) in selected_rows.iter().rev().enumerate() {
|
||||
'next_result: for tree_path in selected_rows.iter().rev() {
|
||||
let iter = model.iter(tree_path).unwrap();
|
||||
|
||||
let file_name = model.get::<String>(&iter, column_file_name);
|
||||
|
|
|
@ -8,12 +8,10 @@ use crate::notebook_enums::*;
|
|||
pub fn connect_button_select(gui_data: &GuiData) {
|
||||
let popovers = gui_data.popovers.clone();
|
||||
let notebook_main = gui_data.main_notebook.notebook_main.clone();
|
||||
let popover_select = gui_data.popovers.popover_select.clone();
|
||||
let gc_buttons_select = gui_data.bottom_buttons.gc_buttons_select.clone();
|
||||
|
||||
gc_buttons_select.connect_pressed(move |_, _, _, _| {
|
||||
show_required_popovers(&popovers, &to_notebook_main_enum(notebook_main.current_page().unwrap()));
|
||||
popover_select.popup();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -22,8 +22,8 @@ pub fn connect_button_stop(gui_data: &GuiData) {
|
|||
|
||||
let gc_button_stop_in_dialog = gui_data.progress_window.gc_button_stop_in_dialog.clone();
|
||||
let stop_sender = gui_data.stop_sender.clone();
|
||||
// TODO change this to connect released, not sure why not works here
|
||||
gc_button_stop_in_dialog.connect_pressed(move |a, b, c, d| {
|
||||
// TODO GTK 4 change this to connect released, not sure why not works here
|
||||
gc_button_stop_in_dialog.connect_pressed(move |a, _b, _c, _d| {
|
||||
send_stop_message(&stop_sender);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -513,21 +513,21 @@ pub fn initialize_gui(gui_data: &mut GuiData) {
|
|||
fn connect_event_mouse(gui_data: &GuiData) {
|
||||
// GTK 4
|
||||
for gc in [
|
||||
gui_data.main_notebook.gc_tree_view_duplicate_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_empty_folder_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_empty_files_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_temporary_files_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_big_files_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_similar_images_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_similar_videos_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_same_music_finder.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_invalid_symlinks.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_broken_files.clone(),
|
||||
gui_data.main_notebook.gc_tree_view_bad_extensions.clone(),
|
||||
&gui_data.main_notebook.gc_tree_view_duplicate_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_empty_folder_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_empty_files_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_temporary_files_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_big_files_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_similar_images_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_similar_videos_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_same_music_finder,
|
||||
&gui_data.main_notebook.gc_tree_view_invalid_symlinks,
|
||||
&gui_data.main_notebook.gc_tree_view_broken_files,
|
||||
&gui_data.main_notebook.gc_tree_view_bad_extensions,
|
||||
] {
|
||||
gc.set_button(0);
|
||||
gc.connect_pressed(opening_double_click_function);
|
||||
// tree_view.connect_button_release_event(opening_middle_mouse_function); // TODO GTK 4
|
||||
gc.connect_released(opening_middle_mouse_function); // TODO GTK 4 - https://github.com/gtk-rs/gtk4-rs/issues/1043
|
||||
}
|
||||
|
||||
// Duplicate
|
||||
|
|
|
@ -35,7 +35,8 @@ pub fn opening_enter_function_ported_upper_directories(event_controller: >k4::
|
|||
Inhibit(false)
|
||||
}
|
||||
|
||||
pub fn opening_middle_mouse_function(gesture_click: &GestureClick, number_of_clicks: i32, _b: f64, _c: f64) {
|
||||
pub fn opening_middle_mouse_function(gesture_click: &GestureClick, _number_of_clicks: i32, _b: f64, _c: f64) {
|
||||
println!("MIDDLE MOUSE BUTTON CLICKED");
|
||||
let tree_view = gesture_click.widget().downcast::<gtk4::TreeView>().unwrap();
|
||||
|
||||
let nt_object = get_notebook_object_from_tree_view(&tree_view);
|
||||
|
|
Loading…
Reference in a new issue