File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -558,22 +558,15 @@ fn parse_atoms(input: &Loop, pdb: &mut PDB) -> Option<Vec<PDBError>> {
558
558
/// Get the Textual content of the value, if available
559
559
fn get_text (
560
560
value : & Value ,
561
- context : & Context ,
562
- column : Option < & str > ,
561
+ _context : & Context ,
562
+ _column : Option < & str > ,
563
563
) -> Result < Option < String > , PDBError > {
564
564
match value {
565
565
Value :: Text ( t) => Ok ( Some ( t. to_string ( ) ) ) ,
566
566
Value :: Inapplicable => Ok ( None ) ,
567
567
Value :: Unknown => Ok ( None ) ,
568
568
Value :: Numeric ( n) => Ok ( Some ( format ! ( "{n}" ) ) ) ,
569
- _ => Err ( PDBError :: new (
570
- ErrorLevel :: InvalidatingError ,
571
- "Not text" ,
572
- column. map_or ( String :: new ( ) , |v| {
573
- format ! ( "The '{v}' column should contain text." )
574
- } ) ,
575
- context. clone ( ) ,
576
- ) ) ,
569
+ Value :: NumericWithUncertainty ( n, u) => Ok ( Some ( format ! ( "{n}({u})" ) ) ) ,
577
570
}
578
571
}
579
572
You can’t perform that action at this time.
0 commit comments