Update to Rust 2018 edition

This commit is contained in:
LoganDark 2021-02-21 18:27:58 -08:00
parent db2f86ce15
commit 9a64350619
No known key found for this signature in database
GPG key ID: B8C37CEDE1AC60EA
4 changed files with 5 additions and 4 deletions

View file

@ -4,6 +4,7 @@ version = "0.8.0"
authors = ["shivshank"] authors = ["shivshank"]
description = "Quick and easy window creation, input, and high speed bitmap rendering" description = "Quick and easy window creation, input, and high speed bitmap rendering"
repository = "https://github.com/shivshank/mini_gl_fb" repository = "https://github.com/shivshank/mini_gl_fb"
edition = "2018"
license = "MIT" license = "MIT"

View file

@ -2,7 +2,7 @@
//! [`Framebuffer`] object and manipulate them directly. //! [`Framebuffer`] object and manipulate them directly.
use glutin::{WindowedContext, PossiblyCurrent, ContextError}; use glutin::{WindowedContext, PossiblyCurrent, ContextError};
use core::Framebuffer; use crate::core::Framebuffer;
use std::collections::HashMap; use std::collections::HashMap;
use glutin::event::{MouseButton, VirtualKeyCode, ModifiersState}; use glutin::event::{MouseButton, VirtualKeyCode, ModifiersState};

View file

@ -1,4 +1,4 @@
use breakout::{GlutinBreakout, BasicInput}; use crate::breakout::{GlutinBreakout, BasicInput};
use rustic_gl; use rustic_gl;

View file

@ -117,9 +117,9 @@ pub mod breakout;
pub use breakout::{GlutinBreakout, BasicInput}; pub use breakout::{GlutinBreakout, BasicInput};
pub use config::{Config, ConfigBuilder}; pub use config::{Config, ConfigBuilder};
pub use core::{Internal, BufferFormat, Framebuffer}; pub use crate::core::{Internal, BufferFormat, Framebuffer};
use core::ToGlType; use crate::core::ToGlType;
use glutin::event_loop::EventLoop; use glutin::event_loop::EventLoop;
use glutin::dpi::LogicalSize; use glutin::dpi::LogicalSize;