Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonros authored Jun 23, 2024
1 parent ee930f9 commit 40d53cc
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 {
pub fn from_file<P: Into<PathBuf>>(path: P) -> Self {231

Check failure on line 20 in src/nvrtc/safe.rs

View workflow job for this annotation

GitHub Actions / cargo-fmt

expected `;`, found keyword `Self`

Check failure on line 20 in src/nvrtc/safe.rs

View workflow job for this annotation

GitHub Actions / clippy

expected `;`, found keyword `Self`

Check failure on line 20 in src/nvrtc/safe.rs

View workflow job for this annotation

GitHub Actions / cargo-check

expected `;`, found keyword `Self`
Self(PtxKind::File(path.into()))
}

Expand Down Expand Up @@ -228,7 +228,7 @@ impl CompileOptions {
for path in self.include_paths {
options.push(std::format!("--include-path={path}"));
}

if let Some(arch) = self.arch {
options.push(std::format!("--gpu-architecture={arch}"))
}
Expand Down

0 comments on commit 40d53cc

Please sign in to comment.