Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
fix remaining errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-chuang committed Nov 7, 2020
1 parent 0e5f2c4 commit ca4e6a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algebra-core/src/curves/cuda/scalar_mul/cpu_gpu_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ macro_rules! impl_gpu_cpu_run_kernel {
.join("cuda-scalar-mul-profiler")
.join(P::namespace());
std::fs::create_dir_all(&dir)?;
Ok(dir.to_str().to_string())
Ok(dir.to_str().unwrap().to_string())
}
#[cfg(not(feature = "cuda"))]
Err(crate::CudaScalarMulError::CudaDisabledError)
Expand All @@ -22,7 +22,7 @@ macro_rules! impl_gpu_cpu_run_kernel {
fn read_profile_data() -> Result<crate::String, crate::CudaScalarMulError> {
#[cfg(feature = "cuda")]
{
let dir = Self::init_gpu_cache_dir()?;
let dir = std::path::PathBuf::from(Self::init_gpu_cache_dir()?);
let data = std::fs::read_to_string(&dir.join("profile_data.txt"))?;
Ok(data)
}
Expand Down

0 comments on commit ca4e6a9

Please sign in to comment.