Skip to content

Commit

Permalink
Move From implementation into spv front end
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed Sep 16, 2024
1 parent 41f0b63 commit 01fc0d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions naga/src/front/atomic_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ pub enum Error {
GlobalVariableMissing,
}

impl From<Error> for crate::front::spv::Error {
fn from(source: Error) -> Self {
crate::front::spv::Error::AtomicUpgradeError(source)
}
}

#[derive(Clone, Default)]
struct Padding(Arc<AtomicUsize>);

Expand Down
6 changes: 6 additions & 0 deletions naga/src/front/spv/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,9 @@ impl Error {
String::from_utf8(writer.into_inner()).unwrap()
}
}

impl From<atomic_upgrade::Error> for Error {
fn from(source: atomic_upgrade::Error) -> Self {
crate::front::spv::Error::AtomicUpgradeError(source)
}
}

0 comments on commit 01fc0d9

Please sign in to comment.