[gnome-tour: 1/2] Clean-up edition-related things




commit 70051fc2c8db3ef5e64d0ddaff02de14c8361554
Author: Yuki Okushi <huyuumi dev gmail com>
Date:   Fri Aug 14 13:49:43 2020 +0900

    Clean-up edition-related things

 rustfmt.toml             | 1 -
 src/application.rs       | 2 ++
 src/main.rs              | 5 -----
 src/widgets/paginator.rs | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/rustfmt.toml b/rustfmt.toml
index e0a408b..ffc467d 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,2 +1 @@
 max_width = 200
-edition = "2018"
diff --git a/src/application.rs b/src/application.rs
index 634ff33..2604f9d 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -2,7 +2,9 @@ use crate::config;
 use crate::utils;
 use crate::widgets::Window;
 use gio::prelude::*;
+use glib::clone;
 use gtk::prelude::*;
+use log::info;
 use std::env;
 use std::{cell::RefCell, rc::Rc};
 
diff --git a/src/main.rs b/src/main.rs
index 67b3384..55b48c4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,8 +1,3 @@
-#[macro_use]
-extern crate log;
-#[macro_use]
-extern crate glib;
-
 use gettextrs::*;
 
 mod application;
diff --git a/src/widgets/paginator.rs b/src/widgets/paginator.rs
index cf0742f..19356ec 100644
--- a/src/widgets/paginator.rs
+++ b/src/widgets/paginator.rs
@@ -1,5 +1,6 @@
 use anyhow::Result;
 use gettextrs::gettext;
+use glib::clone;
 use gtk::prelude::*;
 use std::cell::RefCell;
 use std::rc::Rc;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]