build: remove unused imports
This commit is contained in:
parent
15d57bc968
commit
5542698467
3 changed files with 7 additions and 12 deletions
|
@ -12,8 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use std::fmt::format;
|
||||
use egui::{Direction, Id, Layout, RichText, Rounding, Stroke, TextStyle, Ui, Widget};
|
||||
use egui::{Id, RichText, Rounding, Stroke, TextStyle, Ui, Widget};
|
||||
use egui_extras::{Size, StripBuilder};
|
||||
use grin_core::global::ChainTypes;
|
||||
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use egui::{Color32, lerp, Rgba, RichText};
|
||||
use egui::style::Margin;
|
||||
use egui_extras::{Size, StripBuilder};
|
||||
|
@ -234,16 +232,15 @@ impl NetworkContainer {
|
|||
fn title_text_ui(&self, builder: StripBuilder) {
|
||||
builder
|
||||
.size(Size::remainder())
|
||||
.size(Size::exact(30.0))
|
||||
.size(Size::exact(28.0))
|
||||
.vertical(|mut strip| {
|
||||
strip.cell(|ui| {
|
||||
ui.add_space(3.0);
|
||||
ui.add_space(4.0);
|
||||
ui.vertical_centered(|ui| {
|
||||
ui.label(RichText::new(self.current_tab.get_type().name().to_uppercase())
|
||||
.size(18.0)
|
||||
.size(19.0)
|
||||
.color(Colors::TITLE));
|
||||
});
|
||||
ui.add_space(1.0);
|
||||
});
|
||||
strip.cell(|ui| {
|
||||
ui.centered_and_justified(|ui| {
|
||||
|
|
|
@ -14,21 +14,20 @@
|
|||
|
||||
use std::fs::File;
|
||||
use std::io::{BufRead, BufReader, Write};
|
||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4, TcpListener, ToSocketAddrs};
|
||||
use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4, TcpListener, ToSocketAddrs};
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
use egui::Key::P;
|
||||
|
||||
use grin_config::{config, ConfigError, ConfigMembers, GlobalConfig};
|
||||
use grin_config::config::{API_SECRET_FILE_NAME, FOREIGN_API_SECRET_FILE_NAME, SERVER_CONFIG_FILE_NAME};
|
||||
use grin_core::global::ChainTypes;
|
||||
use grin_p2p::msg::PeerAddrs;
|
||||
use grin_p2p::{PeerAddr, Seeding};
|
||||
use grin_p2p::msg::PeerAddrs;
|
||||
use grin_servers::common::types::ChainValidationMode;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::node::Node;
|
||||
|
||||
use crate::{AppConfig, Settings};
|
||||
use crate::node::Node;
|
||||
|
||||
/// Peers config to save peers DNS names into the file.
|
||||
#[derive(Serialize, Deserialize, Default)]
|
||||
|
|
Loading…
Reference in a new issue