Skip to content

Commit

Permalink
updated deps and CHANGELOG; optimized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Jan 1, 2024
1 parent 6fd1b97 commit e38c202
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 36 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All Sniffnet releases with the relative changes are documented in this file.
- Introduced new filtering capabilities to allow users specify custom values of ports and IP addresses ([#414](https://github.com/GyulyVGC/sniffnet/pull/414))
- The size of text and widgets can now be customised by setting a proper zoom value (fixes [#202](https://github.com/GyulyVGC/sniffnet/issues/202) and [#344](https://github.com/GyulyVGC/sniffnet/issues/344))
- Added possibility to totally customize the app's theme via styles defined in TOML files ([#286](https://github.com/GyulyVGC/sniffnet/pull/286) and [#419](https://github.com/GyulyVGC/sniffnet/pull/419))
- Added support for more link types in addition to Ethernet: raw IP packets and null/loopback packets are now correctly parsed ([#421](https://github.com/GyulyVGC/sniffnet/pull/421))
- IP addresses can now be copied to clipboard from the popup related to a given entry of the connections table, and a new search parameter has been introduced in Inspect page to allow users filter their connections based on IP address values ([#409](https://github.com/GyulyVGC/sniffnet/pull/409))
- Added Japanese translation 🇯🇵 ([#343](https://github.com/GyulyVGC/sniffnet/pull/343))
- Added Uzbek translation 🇺🇿 ([#385](https://github.com/GyulyVGC/sniffnet/pull/385))
Expand Down
60 changes: 30 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/networking/types/my_device.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use std::sync::{Arc, Mutex};

use crate::networking::types::my_link_type::MyLinkType;
use pcap::{Address, Device, DeviceFlags};

use crate::networking::types::my_link_type::MyLinkType;

/// Represents the current inspected device.
/// Used to keep in sync the device addresses in case of changes
/// (e.g., device not connected to the internet acquires new IP address)
Expand Down
7 changes: 4 additions & 3 deletions src/networking/types/my_link_type.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use iced::widget::Column;
use iced::{Font, Renderer};
use pcap::Linktype;

use crate::gui::styles::text::TextType;
use crate::gui::types::message::Message;
use crate::translations::translations_3::link_type_translation;
use crate::{Language, StyleType};
use iced::widget::Column;
use iced::{Font, Renderer};
use pcap::Linktype;

/// Currently supported link types
#[derive(Copy, Clone)]
Expand Down
5 changes: 3 additions & 2 deletions src/translations/translations_3.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#![allow(clippy::match_same_arms)]

use crate::translations::translations::network_adapter_translation;
use crate::{Language, StyleType};
use iced::widget::Text;
use iced::Renderer;

use crate::translations::translations::network_adapter_translation;
use crate::{Language, StyleType};

// This is referred to settings (General settings)
pub fn general_translation(language: Language) -> &'static str {
match language {
Expand Down

0 comments on commit e38c202

Please sign in to comment.