Skip to content

Commit d42f120

Browse files
committed
Reformatted.
1 parent 5a61026 commit d42f120

File tree

59 files changed

+91
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+91
-85
lines changed

api/formats/swimos_recon/src/printer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ use swimos_form::write::{
2222
BodyWriter, HeaderWriter, Label, PrimitiveWriter, RecordBodyKind, StructuralWritable,
2323
StructuralWriter,
2424
};
25-
use swimos_model::{BigInt, BigUint};
2625
use swimos_model::literal::write_string_literal;
26+
use swimos_model::{BigInt, BigUint};
2727

2828
/// Print an inline Recon representation of [`StructuralWritable`] value.
2929
///

api/formats/swimos_recon/src/recon_parser/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ use nom::IResult;
2121
use std::borrow::Cow;
2222
use std::ops::{Add, Neg, Sub};
2323
use swimos_form::read::{NumericValue, ReadEvent};
24-
use swimos_model::{BigInt, BigUint};
2524
use swimos_model::{Attr, Item, Text, Value};
25+
use swimos_model::{BigInt, BigUint};
2626

2727
fn span(input: &str) -> Span<'_> {
2828
Span::new(input)

api/formats/swimos_recon/src/recon_parser/tokens.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ use nom::combinator::{map, map_res, opt, peek, recognize};
1919
use nom::multi::{many0_count, many1_count};
2020
use nom::sequence::{delimited, pair, preceded, tuple};
2121
use nom::IResult;
22+
use num_bigint::{ParseBigIntError, Sign};
2223
use num_traits::Num;
2324
use std::borrow::Cow;
2425
use std::convert::TryFrom;
2526
use std::fmt::{Display, Formatter};
2627
use std::ops::Neg;
2728
use swimos_form::read::NumericValue;
28-
use swimos_model::{BigInt, BigUint};
2929
use swimos_model::identifier::{is_identifier_char, is_identifier_start};
3030
use swimos_model::Text;
31-
use num_bigint::{ParseBigIntError, Sign};
31+
use swimos_model::{BigInt, BigUint};
3232

3333
fn unwrap_span(span: Span<'_>) -> &str {
3434
&span

api/swimos_agent_protocol/src/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
use swimos_api::address::Address;
1516
use swimos_form::Form;
1617
use swimos_model::Text;
1718
use swimos_utilities::encoding::BytesStr;
1819
use uuid::Uuid;
19-
use swimos_api::address::Address;
2020

2121
/// Message type for communication between the agent runtime and agent implementation.
2222
#[derive(Debug, Clone, Copy, PartialEq, Eq)]

api/swimos_api/src/agent/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ use swimos_utilities::{
3636
use thiserror::Error;
3737
use tokio::sync::{mpsc, oneshot};
3838

39-
use crate::http::{HttpRequest, HttpResponse};
4039
use crate::error::{
4140
AgentInitError, AgentRuntimeError, AgentTaskError, DownlinkRuntimeError, OpenStoreError,
4241
};
42+
use crate::http::{HttpRequest, HttpResponse};
4343

4444
mod downlink;
4545
mod lane;

api/swimos_api/src/error/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use swimos_utilities::{
2626
use thiserror::Error;
2727
use tokio::sync::{mpsc, oneshot, watch};
2828

29-
use crate::{agent::StoreKind, address::RelativeAddress};
29+
use crate::{address::RelativeAddress, agent::StoreKind};
3030

3131
mod introspection;
3232

api/swimos_api/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
//! to add new storage implementations to allow a Swim server to maintain an external persistent state that can
2323
//! outlive a single execution of the server process.
2424
25+
pub mod address;
2526
pub mod agent;
2627
pub mod error;
27-
pub mod persistence;
2828
pub mod http;
29-
pub mod address;
29+
pub mod persistence;

api/swimos_client_api/src/downlink/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
use std::num::NonZeroUsize;
1616

1717
use futures::future::BoxFuture;
18+
use swimos_api::address::Address;
1819
use swimos_api::{agent::DownlinkKind, error::DownlinkTaskError};
1920
use swimos_model::Text;
20-
use swimos_api::address::Address;
2121
use swimos_utilities::{
2222
io::byte_channel::{ByteReader, ByteWriter},
2323
non_zero_usize,

api/swimos_form/src/structural/read/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use num_bigint::ToBigInt;
1818
use num_traits::ToPrimitive;
1919
use std::borrow::Cow;
2020
use std::hash::{Hash, Hasher};
21-
use swimos_model::{BigInt, BigUint};
2221
use swimos_model::Text;
2322
use swimos_model::ValueKind;
23+
use swimos_model::{BigInt, BigUint};
2424

2525
/// Reading a serialized representation of a record in the Swim data model produces
2626
/// a stream of these events. An event is either a token, a notification that an

api/swimos_form/src/structural/read/recognizer/primitive/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ use crate::structural::read::ReadError;
1919
use num_traits::ToPrimitive;
2020
use std::convert::TryFrom;
2121
use std::num::NonZeroUsize;
22-
use swimos_model::{BigInt, BigUint};
2322
use swimos_model::Text;
2423
use swimos_model::ValueKind;
24+
use swimos_model::{BigInt, BigUint};
2525

2626
#[derive(Debug)]
2727
pub struct UnitRecognizer;

0 commit comments

Comments
 (0)