Skip to content

Commit

Permalink
Fix merge errors due to the switch to rust 2018.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Mar 31, 2019
1 parent 38ef0cb commit ba40e8e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Expand Up @@ -64,8 +64,5 @@ name = "nalgebra_bench"
harness = false
path = "benches/lib.rs"

[patch.crates-io]
alga = { path = "../alga/alga" }

[profile.bench]
lto = true
4 changes: 2 additions & 2 deletions src/geometry/quaternion.rs
Expand Up @@ -591,13 +591,13 @@ impl<N: RealField> Quaternion<N> {
/// Divides quaternion into two.
#[inline]
pub fn half(&self) -> Self {
self / ::convert(2.0f64)
self / crate::convert(2.0f64)
}

/// Calculates square root.
#[inline]
pub fn sqrt(&self) -> Self {
self.powf(::convert(0.5))
self.powf(crate::convert(0.5))
}

/// Check if the quaternion is pure.
Expand Down
2 changes: 1 addition & 1 deletion src/geometry/rotation.rs
Expand Up @@ -352,7 +352,7 @@ where DefaultAllocator: Allocator<N, D, D>
}
}

impl<N: Real, D: DimName> Rotation<N, D>
impl<N: RealField, D: DimName> Rotation<N, D>
where DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>
{
/// Rotate the given point.
Expand Down
13 changes: 7 additions & 6 deletions src/linalg/convolution.rs
@@ -1,11 +1,12 @@
use base::allocator::Allocator;
use base::default_allocator::DefaultAllocator;
use base::dimension::{Dim, DimAdd, DimDiff, DimMax, DimMaximum, DimSub, DimSum};
use std::cmp;
use storage::Storage;
use {zero, Real, Vector, VectorN, U1};

impl<N: Real, D1: Dim, S1: Storage<N, D1>> Vector<N, D1, S1> {
use crate::base::allocator::Allocator;
use crate::base::default_allocator::DefaultAllocator;
use crate::base::dimension::{Dim, DimAdd, DimDiff, DimMax, DimMaximum, DimSub, DimSum};
use crate::storage::Storage;
use crate::{zero, RealField, Vector, VectorN, U1};

impl<N: RealField, D1: Dim, S1: Storage<N, D1>> Vector<N, D1, S1> {
/// Returns the convolution of the target vector and a kernel
///
/// # Arguments
Expand Down

0 comments on commit ba40e8e

Please sign in to comment.