Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonros authored Jun 23, 2024
1 parent 40d53cc commit acd061a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvrtc/safe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct Ptx(pub(crate) PtxKind);

impl Ptx {
/// Creates a Ptx from a pre-compiled .ptx file.
pub fn from_file<P: Into<PathBuf>>(path: P) -> Self {231
pub fn from_file<P: Into<PathBuf>>(path: P) -> Self {
Self(PtxKind::File(path.into()))
}

Expand Down Expand Up @@ -233,7 +233,7 @@ impl CompileOptions {
options.push(std::format!("--gpu-architecture={arch}"))
}

for path in self.options {
for option in self.options {
options.push(option);
}

Expand Down

0 comments on commit acd061a

Please sign in to comment.