Skip to content

Commit

Permalink
Merge pull request rust-windowing#93 from Eijebong/num-traits-0.1-is-…
Browse files Browse the repository at this point in the history
…goooone

Update dependencies to remove num-traits 0.1
  • Loading branch information
pcwalton authored Jul 31, 2018
2 parents d04912f + 9d19454 commit a518cda
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 70 deletions.
92 changes: 35 additions & 57 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demo/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ freetype = ["pathfinder_font_renderer/freetype"]
reftests = ["rsvg", "cairo-rs", "pathfinder_font_renderer/freetype"]

[dependencies]
app_units = "0.6"
app_units = "0.7"
base64 = "0.6"
bincode = "1.0"
env_logger = "0.5"
euclid = "0.19"
image = "0.17"
image = "0.19"
lazy_static = "0.2"
log = "0.3"
lru-cache = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion demo/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ impl<'r> Responder<'r> for ReferenceImage {

let mut bytes = vec![];
try!(self.image
.save(&mut bytes, ImageFormat::PNG)
.write_to(&mut bytes, ImageFormat::PNG)
.map_err(|_| Status::InternalServerError));
builder.sized_body(Cursor::new(bytes));
builder.ok()
Expand Down
2 changes: 1 addition & 1 deletion font-renderer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default = []
freetype-backend = ["freetype"]

[dependencies]
app_units = "0.6"
app_units = "0.7"
libc = "0.2"
log = "0.3"
lyon_path = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion utils/area-lut/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]
[dependencies]
clap = "2.30"
euclid = "0.19"
image = "0.18"
image = "0.19"
2 changes: 1 addition & 1 deletion utils/frontend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.2.0"
authors = ["Patrick Walton <pcwalton@mimiga.net>"]

[dependencies]
app_units = "0.6"
app_units = "0.7"
clap = "2.27"
freetype = "0.4"
lyon_path = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion utils/gamma-lut/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]

[dependencies]
clap = "2.27"
image = "0.17"
image = "0.19"
log = "0.3"
8 changes: 2 additions & 6 deletions utils/gamma-lut/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ mod gamma_lut;

use clap::{App, Arg};
use gamma_lut::GammaLut;
use image::{ImageBuffer, ImageLuma8, Luma, PNG};
use std::fs::File;
use std::path::Path;
use image::{ImageBuffer, ImageLuma8, Luma};

const CONTRAST: f32 = 0.0;
const GAMMA: f32 = 0.0;
Expand Down Expand Up @@ -58,8 +56,6 @@ pub fn main() {
}

let output_path = matches.value_of("OUTPUT-PATH").unwrap();
let output_path = Path::new(output_path);

let mut output = File::create(output_path).unwrap();
ImageLuma8(image).save(&mut output, PNG).unwrap();
ImageLuma8(image).save(output_path).unwrap();
}

0 comments on commit a518cda

Please sign in to comment.