We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b747d commit 3ec21a7Copy full SHA for 3ec21a7
src/core/arith.rs
@@ -383,7 +383,7 @@ where
383
type OutType = T;
384
385
fn convert(&self) -> Array<Self::OutType> {
386
- constant(self.clone(), Dim4::new(&[1, 1, 1, 1]))
+ constant(*self, Dim4::new(&[1, 1, 1, 1]))
387
}
388
389
src/core/array.rs
@@ -872,7 +872,7 @@ mod afserde {
872
/// Serialize Implementation of Array
873
impl<T> Serialize for Array<T>
874
where
875
- T: std::default::Default + std::clone::Clone + Serialize + HasAfEnum + std::fmt::Debug,
+ T: Serialize + HasAfEnum,
876
{
877
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
878
@@ -892,7 +892,7 @@ mod afserde {
892
/// Deserialize Implementation of Array
893
impl<'de, T> Deserialize<'de> for Array<T>
894
895
- T: Deserialize<'de> + HasAfEnum + std::fmt::Debug,
+ T: Deserialize<'de> + HasAfEnum,
896
897
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
898
src/core/util.rs
@@ -120,7 +120,7 @@ impl From<u32> for ColorMap {
120
121
122
mod private {
123
- pub trait Sealed {}
+ pub trait Sealed: std::fmt::Debug + std::marker::Copy + std::default::Default {}
124
125
impl Sealed for num::complex::Complex<f32> {}
126
impl Sealed for num::complex::Complex<f64> {}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments