Update code style to fix build errors

このコミットが含まれているのは:
Sergio Pedri committed 2024-02-18 20:16:44 -08:00
1 親 5798c2d12e
コミット 0eb5f92c4b
9ファイル変更
+38 -87

検索条件に一致するファイルはありません

+4 -16
ファイルの表示
@@ -190,19 +190,13 @@ internal readonly struct EquatableArray<T>(ImmutableArray<T> array) : IEquatable
/// Implicitly converts an <see cref="ImmutableArray{T}"/> to <see cref="EquatableArray{T}"/>.
/// </summary>
/// <returns>An <see cref="EquatableArray{T}"/> instance from a given <see cref="ImmutableArray{T}"/>.</returns>
public static implicit operator EquatableArray<T>(ImmutableArray<T> array)
{
return FromImmutableArray(array);
}
public static implicit operator EquatableArray<T>(ImmutableArray<T> array) => FromImmutableArray(array);
/// <summary>
/// Implicitly converts an <see cref="EquatableArray{T}"/> to <see cref="ImmutableArray{T}"/>.
/// </summary>
/// <returns>An <see cref="ImmutableArray{T}"/> instance from a given <see cref="EquatableArray{T}"/>.</returns>
public static implicit operator ImmutableArray<T>(EquatableArray<T> array)
{
return array.AsImmutableArray();
}
public static implicit operator ImmutableArray<T>(EquatableArray<T> array) => array.AsImmutableArray();
/// <summary>
/// Checks whether two <see cref="EquatableArray{T}"/> values are the same.
@@ -210,10 +204,7 @@ internal readonly struct EquatableArray<T>(ImmutableArray<T> array) : IEquatable
/// <param name="left">The first <see cref="EquatableArray{T}"/> value.</param>
/// <param name="right">The second <see cref="EquatableArray{T}"/> value.</param>
/// <returns>Whether <paramref name="left"/> and <paramref name="right"/> are equal.</returns>
public static bool operator ==(EquatableArray<T> left, EquatableArray<T> right)
{
return left.Equals(right);
}
public static bool operator ==(EquatableArray<T> left, EquatableArray<T> right) => left.Equals(right);
/// <summary>
/// Checks whether two <see cref="EquatableArray{T}"/> values are not the same.
@@ -221,8 +212,5 @@ internal readonly struct EquatableArray<T>(ImmutableArray<T> array) : IEquatable
/// <param name="left">The first <see cref="EquatableArray{T}"/> value.</param>
/// <param name="right">The second <see cref="EquatableArray{T}"/> value.</param>
/// <returns>Whether <paramref name="left"/> and <paramref name="right"/> are not equal.</returns>
public static bool operator !=(EquatableArray<T> left, EquatableArray<T> right)
{
return !left.Equals(right);
}
public static bool operator !=(EquatableArray<T> left, EquatableArray<T> right) => !left.Equals(right);
}
+1 -1
ファイルの表示
@@ -18,7 +18,7 @@ internal struct ImmutableHashSetBuilder<T> : IDisposable
/// <summary>
/// The shared <see cref="ObjectPool{T}"/> instance to share <see cref="HashSet{T}"/> objects.
/// </summary>
private static readonly ObjectPool<HashSet<T>> SharedObjectPool = new(static () => new HashSet<T>());
private static readonly ObjectPool<HashSet<T>> SharedObjectPool = new(static () => []);
/// <summary>
/// The rented <see cref="HashSet{T}"/> instance to use.