Skip to content

Commit

Permalink
remove static lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
rsk700 committed May 7, 2020
1 parent 96ed596 commit 2a82928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crate/src/native.rs
Expand Up @@ -22,7 +22,7 @@ use crate::{PhotonImage};
///
/// // ... image editing functionality here ...
/// ```
pub fn open_image(img_path: &'static str) -> PhotonImage {
pub fn open_image(img_path: &str) -> PhotonImage {
let img = image::open(img_path).unwrap();

let (width, height) = img.dimensions();
Expand Down Expand Up @@ -57,4 +57,4 @@ pub fn save_image(img: PhotonImage, img_path: &str) {
let dynimage = image::ImageRgba8(img_buffer);

dynimage.save(img_path).unwrap();
}
}

0 comments on commit 2a82928

Please sign in to comment.