Skip to content

Commit 917202c

Browse files
committed
fix warnings
1 parent 4243238 commit 917202c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler-cli/src/new/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn new() {
3636
#[test]
3737
fn new_with_default_template() {
3838
let tmp = tempfile::tempdir().unwrap();
39-
let path = Utf8PathBuf::from_path_buf(tmp.into_path()).expect("Non Utf8 Path");
39+
let path = Utf8PathBuf::from_path_buf(tmp.keep()).expect("Non Utf8 Path");
4040

4141
let creator = super::Creator::new(
4242
super::NewOptions {

compiler-core/src/dependency.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use hexpm::{
88
version::{Range, Version},
99
};
1010
use pubgrub::{Dependencies, Map};
11-
use thiserror::Error;
11+
use thiserror;
1212

1313
pub type PackageVersions = HashMap<String, Version>;
1414

@@ -192,7 +192,7 @@ pub trait PackageFetcher {
192192
fn get_dependencies(&self, package: &str) -> Result<Rc<hexpm::Package>, PackageFetchError>;
193193
}
194194

195-
#[derive(Debug, Error)]
195+
#[derive(Debug, thiserror::Error)]
196196
pub enum PackageFetchError {
197197
#[error("{0}")]
198198
ApiError(hexpm::ApiError),

0 commit comments

Comments
 (0)