aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@anshulg.com> 2024-08-28 16:06:09 -0700
committerGravatar Anshul Gupta <ansg191@anshulg.com> 2024-08-28 16:06:09 -0700
commitd6b53fdd905859641893aa2326bf940464d02320 (patch)
treeab6e07ef58bfce7907aa4b3a7a137e62b6879e1d
parent4a5ca854ccbb8a2932d0fab918e5c935b4ea9d17 (diff)
downloadnotion-main.tar.gz
notion-main.tar.zst
notion-main.zip
Make identifier::from_str infallibleHEADmainidentifier-infallible
-rw-r--r--src/ids.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ids.rs b/src/ids.rs
index 611212e..bac7f2e 100644
--- a/src/ids.rs
+++ b/src/ids.rs
@@ -1,5 +1,5 @@
use std::fmt::Display;
-use std::fmt::Error;
+use std::convert::Infallible;
pub trait Identifier: Display {
fn value(&self) -> &str;
@@ -50,7 +50,7 @@ macro_rules! identifer {
}
impl std::str::FromStr for $name {
- type Err = Error;
+ type Err = Infallible;
fn from_str(s: &str) -> Result<Self, Self::Err> {
Ok($name(s.to_string()))
&follow=1'>replace release number 20.04 by 20.05 in the repo (#1027)Gravatar MaxThevenet 3-3/+3 2020-05-15Minor updates to Schwinger tests (#1003)Gravatar NeilZaim 3-18/+31 2020-05-15Crash if deprecated input parameters are used. (#981)Gravatar MaxThevenet 5-0/+58 2020-05-15Summit: ADIOS2 Usage (#1026)Gravatar Axel Huebl 1-1/+2 2020-05-14Implemented new particle diagnostics in picmi (#984)Gravatar David Grote 12-50/+121 2020-05-14[mini] Update libensemble scripts (#1010)Gravatar MaxThevenet 1-2/+2 2020-05-14Docs: Dimensionality (#1020)Gravatar Axel Huebl 3-0/+56 2020-05-13use new diags syntax for libe input file (#1014)Gravatar MaxThevenet 2-11/+10 2020-05-13Allow to pass component in stencil templates (#1012)Gravatar Remi Lehe 3-70/+70 2020-05-13Fix error with Schwinger when multiple tiles are used (#1013)Gravatar NeilZaim 2-10/+1 2020-05-12Remove unneeded ExchangeF (#996)Gravatar Remi Lehe 1-2/+0 2020-05-12Implement intervals parser for override_sync (#1008)Gravatar NeilZaim 4-11/+13 2020-05-11macOS CI: brew update (#1002)Gravatar Axel Huebl 1-0/+1 2020-05-11Implement intervals parser for new diagnostics (#1000)Gravatar NeilZaim 3-9/+12 2020-05-11Add Schwinger process (#784)Gravatar NeilZaim 12-8/+831 2020-05-11Device field gather (#998)Gravatar Andrew Myers 1-308/+360 2020-05-11Generalize coarsening for MR (#945)Gravatar Edoardo Zoni 19-498/+524 2020-05-08Parser: .c -> .cpp (#999)Gravatar Axel Huebl 6-3/+2 2020-05-08Fix bug for PSATD momentum-conserving runs (#965)Gravatar Remi Lehe 3-3/+41 2020-05-08remove unused variables from WarpX::EvolveE (#995)Gravatar Andrew Myers 1-19/+1 2020-05-08remove executable permission from this source file (#994)Gravatar Andrew Myers 1-0/+0 2020-05-07Diags: Missing/Broken Includes (#993)Gravatar Axel Huebl 2-2/+2 2020-05-06Update parameters.rst (#990)Gravatar lge0303 1-0/+18 2020-05-06Docs: Summit openPMD (#989)Gravatar Axel Huebl 4-3/+46 2020-05-06Add line in parameters doc (#985)Gravatar NeilZaim 1-0/+2 2020-05-06Load Particles: external_file MPI Support (#956)Gravatar Axel Huebl 5-95/+186 2020-05-06bump tolerance on two of the gpu tests (#987)Gravatar Andrew Myers 1-2/+2 2020-05-06Option whether to dump rz modes (#986)Gravatar MaxThevenet 3-1/+9 2020-05-05Current correction in Fourier space (#675)Gravatar Edoardo Zoni 11-6/+268 2020-05-05Switch costs to LayoutData (#970)Gravatar Michael E Rowan 10-42/+31