rust: Use 2018 eition

This edition has better syntax around scoping and `use`.
This commit is contained in:
Dorota Czaplejewicz
2022-12-21 12:17:22 +00:00
parent 38165ac039
commit 828279d03c
18 changed files with 78 additions and 77 deletions

View File

@ -11,7 +11,7 @@ use crate::main;
use crate::util::DivCeil;
// traits
use ::logging::Warn;
use crate::logging::Warn;
/// Gathers stuff defined in C or called by C
pub mod c {
@ -20,7 +20,7 @@ pub mod c {
use std::os::raw::{ c_char, c_void };
use std::ptr;
use ::util::c::{COpaquePtr, Wrapped};
use crate::util::c::{COpaquePtr, Wrapped};
// Defined in C